summaryrefslogtreecommitdiff
path: root/src/base/protect.h
diff options
context:
space:
mode:
authorTomas Chvatal (scarabeus) <tomas.chvatal@gmail.com>2008-10-23 00:09:21 +0200
committerTomas Chvatal (scarabeus) <tomas.chvatal@gmail.com>2008-10-23 00:09:21 +0200
commit6a0565944376426ded71849df09527da077dfc94 (patch)
tree2f9e1f664febc298b61626a613366330dfe0bd6e /src/base/protect.h
parent130d45bfc935da1702a7b5c246a099ea3b4a0bdf (diff)
Ups forget to fix header files.
Diffstat (limited to 'src/base/protect.h')
-rw-r--r--src/base/protect.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/base/protect.h b/src/base/protect.h
index ec9db56..54c5554 100644
--- a/src/base/protect.h
+++ b/src/base/protect.h
@@ -1,25 +1,25 @@
#ifndef PROTECT_H
- #define PROTECT_H
- #define PROTECT_PING_INTERVAL_TIMEOUT 5000
- #define PROTECT_SPEED_INTERVAL_TIMEOUT 40
- #define PROTECT_SPEED_AVARAGE 10
+#define PROTECT_H
+#define PROTECT_PING_INTERVAL_TIMEOUT 5000
+#define PROTECT_SPEED_INTERVAL_TIMEOUT 40
+#define PROTECT_SPEED_AVARAGE 10
- #include "main.h"
- #include "myTimer.h"
+#include "main.h"
+#include "myTimer.h"
- typedef struct protect_struct
- {
- my_time_t lastPing;
- my_time_t lastMove;
- my_time_t avarage;
- int count;
- bool_t isDown;
- } protect_t;
+typedef struct protect_struct
+{
+ my_time_t lastPing;
+ my_time_t lastMove;
+ my_time_t avarage;
+ int count;
+ bool_t isDown;
+} protect_t;
- extern protect_t* newProtect();
- extern void refreshLastMove(protect_t *p);
- extern void rereshLastPing(protect_t *p);
- extern bool_t isDown(protect_t *p);
- extern void destroyProtect(protect_t *p);
+extern protect_t *newProtect();
+extern void refreshLastMove(protect_t * p);
+extern void rereshLastPing(protect_t * p);
+extern bool_t isDown(protect_t * p);
+extern void destroyProtect(protect_t * p);
#endif