summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h7
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
86typedef struct { 89typedef struct {
@@ -97,7 +100,11 @@ void deinit_logic( void );
97 100
98enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, STATS_SLASH24S, STATS_SLASH24S_OLD, SYNC_IN, SYNC_OUT }; 101enum { 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
100ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer, int from_changeset ); 104ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer, int from_changeset );
105#else
106ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer );
107#endif
101size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, int is_tcp ); 108size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, int is_tcp );
102size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp ); 109size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp );
103size_t return_fullscrape_for_tracker( char **reply ); 110size_t return_fullscrape_for_tracker( char **reply );