diff options
author | erdgeist <> | 2008-10-04 05:40:51 +0000 |
---|---|---|
committer | erdgeist <> | 2008-10-04 05:40:51 +0000 |
commit | e534db03c6877f8ac0559f63840e9a00e9bd43bf (patch) | |
tree | 811181b9b39d0484e28eb25cbb9f2eea094978e2 /ot_sync.h | |
parent | 8cbfc8602c73e55770f3c06d8ea42758b22a0401 (diff) |
added live sync code
added a config file parser
added tracker id
changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK
changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE
added an option to switch off fullscrapes
cleaned up many internal hardcoded values, like PROTO_FLAG,
Diffstat (limited to 'ot_sync.h')
-rw-r--r-- | ot_sync.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6,7 +6,7 @@ | |||
6 | #ifndef __OT_SYNC_H__ | 6 | #ifndef __OT_SYNC_H__ |
7 | #define __OT_SYNC_H__ | 7 | #define __OT_SYNC_H__ |
8 | 8 | ||
9 | #ifdef WANT_TRACKER_SYNC | 9 | #ifdef WANT_SYNC_BATCH |
10 | enum { SYNC_IN, SYNC_OUT }; | 10 | enum { SYNC_IN, SYNC_OUT }; |
11 | 11 | ||
12 | void sync_init( ); | 12 | void sync_init( ); |
@@ -14,6 +14,11 @@ void sync_deinit( ); | |||
14 | void sync_deliver( int64 socket ); | 14 | void sync_deliver( int64 socket ); |
15 | 15 | ||
16 | int add_changeset_to_tracker( uint8_t *data, size_t len ); | 16 | int add_changeset_to_tracker( uint8_t *data, size_t len ); |
17 | #else | ||
18 | |||
19 | #define sync_init() | ||
20 | #define sync_deinit() | ||
21 | |||
17 | #endif | 22 | #endif |
18 | 23 | ||
19 | #endif | 24 | #endif |