diff options
| author | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-15 19:57:10 +0000 |
|---|---|---|
| committer | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-15 19:57:10 +0000 |
| commit | 7bbd60007620cf3cc3ee7a913f7010588808ebb2 (patch) | |
| tree | 34e72f66dfd1076e23c43074786f935aca70cba1 /src/base/protect.h | |
| parent | 50ba3d5e1e9f9eeda049a348efa4645af07610bc (diff) | |
"- initial commit for GETTEXT support and K&R compilance"
git-svn-id: http://opensvn.csie.org/tuxanci_ng@196 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/protect.h')
| -rw-r--r-- | src/base/protect.h | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/src/base/protect.h b/src/base/protect.h index e0553dd..ec9db56 100644 --- a/src/base/protect.h +++ b/src/base/protect.h @@ -1,30 +1,25 @@ #ifndef PROTECT_H - -#define PROTECT_H - -#include "main.h" -#include "myTimer.h" - -#define PROTECT_PING_INTERVAL_TIMEOUT 5000 -#define PROTECT_SPEED_INTERVAL_TIMEOUT 40 -#define PROTECT_SPEED_AVARAGE 10 - -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); - + #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" + + 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); #endif |