diff options
Diffstat (limited to 'trackerlogic.h')
-rw-r--r-- | trackerlogic.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/trackerlogic.h b/trackerlogic.h index 9cbffc1..7cf75b2 100644 --- a/trackerlogic.h +++ b/trackerlogic.h | |||
@@ -98,16 +98,18 @@ typedef struct { | |||
98 | Exported functions | 98 | Exported functions |
99 | */ | 99 | */ |
100 | 100 | ||
101 | #ifdef WANT_TRACKER_SYNC | ||
102 | #define WANT_TRACKER_SYNC_PARAM( param ) , param | ||
103 | #else | ||
104 | #define WANT_TRACKER_SYNC_PARAM( param ) | ||
105 | #endif | ||
106 | |||
101 | int init_logic( const char * const serverdir ); | 107 | int init_logic( const char * const serverdir ); |
102 | void deinit_logic( void ); | 108 | void deinit_logic( void ); |
103 | 109 | ||
104 | enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, STATS_SLASH24S, STATS_SLASH24S_OLD, SYNC_IN, SYNC_OUT, STATS_FULLSCRAPE }; | 110 | enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, STATS_SLASH24S, STATS_SLASH24S_OLD, SYNC_IN, SYNC_OUT, STATS_FULLSCRAPE }; |
105 | 111 | ||
106 | #ifdef WANT_TRACKER_SYNC | 112 | ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer WANT_TRACKER_SYNC_PARAM( int from_changeset ) ); |
107 | ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer, int from_changeset ); | ||
108 | #else | ||
109 | ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ); | ||
110 | #endif | ||
111 | size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, int is_tcp ); | 113 | size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, int is_tcp ); |
112 | size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp ); | 114 | size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp ); |
113 | size_t return_fullscrape_for_tracker( char **reply ); | 115 | size_t return_fullscrape_for_tracker( char **reply ); |