summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h12
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
101int init_logic( const char * const serverdir ); 107int init_logic( const char * const serverdir );
102void deinit_logic( void ); 108void deinit_logic( void );
103 109
104enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, STATS_SLASH24S, STATS_SLASH24S_OLD, SYNC_IN, SYNC_OUT, STATS_FULLSCRAPE }; 110enum { 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 112ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer WANT_TRACKER_SYNC_PARAM( int from_changeset ) );
107ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer, int from_changeset );
108#else
109ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer );
110#endif
111size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, int is_tcp ); 113size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, int is_tcp );
112size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp ); 114size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp );
113size_t return_fullscrape_for_tracker( char **reply ); 115size_t return_fullscrape_for_tracker( char **reply );