diff options
author | erdgeist <> | 2007-10-29 17:22:05 +0000 |
---|---|---|
committer | erdgeist <> | 2007-10-29 17:22:05 +0000 |
commit | 31eada6168f9c2433b0b7cd3ef21861f76d21784 (patch) | |
tree | 884b0ed46a45a163b389ccbd4823b910eaf6ef5e /trackerlogic.h | |
parent | b19bbd6a850ecd51180dfea6e025a032fb2f1fe1 (diff) |
Reenabled syncing
Diffstat (limited to 'trackerlogic.h')
-rw-r--r-- | trackerlogic.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/trackerlogic.h b/trackerlogic.h index fd8f48a..fc6c884 100644 --- a/trackerlogic.h +++ b/trackerlogic.h | |||
@@ -81,6 +81,9 @@ typedef struct { | |||
81 | size_t down_count; | 81 | size_t down_count; |
82 | size_t seed_counts[ OT_POOLS_COUNT ]; | 82 | size_t seed_counts[ OT_POOLS_COUNT ]; |
83 | ot_vector peers[ OT_POOLS_COUNT ]; | 83 | ot_vector peers[ OT_POOLS_COUNT ]; |
84 | #ifdef WANT_TRACKER_SYNC | ||
85 | ot_vector changeset; | ||
86 | #endif | ||
84 | } ot_peerlist; | 87 | } ot_peerlist; |
85 | 88 | ||
86 | typedef struct { | 89 | typedef struct { |
@@ -97,7 +100,11 @@ void deinit_logic( void ); | |||
97 | 100 | ||
98 | enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, STATS_SLASH24S, STATS_SLASH24S_OLD, SYNC_IN, SYNC_OUT }; | 101 | enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, STATS_SLASH24S, STATS_SLASH24S_OLD, SYNC_IN, SYNC_OUT }; |
99 | 102 | ||
103 | #ifdef WANT_TRACKER_SYNC | ||
100 | ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer, int from_changeset ); | 104 | ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer, int from_changeset ); |
105 | #else | ||
106 | ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ); | ||
107 | #endif | ||
101 | size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, int is_tcp ); | 108 | size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, int is_tcp ); |
102 | size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp ); | 109 | size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp ); |
103 | size_t return_fullscrape_for_tracker( char **reply ); | 110 | size_t return_fullscrape_for_tracker( char **reply ); |