summaryrefslogtreecommitdiff
path: root/ot_sync.h
diff options
context:
space:
mode:
authorerdgeist <>2008-10-04 05:40:51 +0000
committererdgeist <>2008-10-04 05:40:51 +0000
commite534db03c6877f8ac0559f63840e9a00e9bd43bf (patch)
tree811181b9b39d0484e28eb25cbb9f2eea094978e2 /ot_sync.h
parent8cbfc8602c73e55770f3c06d8ea42758b22a0401 (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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ot_sync.h b/ot_sync.h
index 210d9d7..ae54e67 100644
--- a/ot_sync.h
+++ b/ot_sync.h
@@ -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
10enum { SYNC_IN, SYNC_OUT }; 10enum { SYNC_IN, SYNC_OUT };
11 11
12void sync_init( ); 12void sync_init( );
@@ -14,6 +14,11 @@ void sync_deinit( );
14void sync_deliver( int64 socket ); 14void sync_deliver( int64 socket );
15 15
16int add_changeset_to_tracker( uint8_t *data, size_t len ); 16int 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