summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trackerlogic.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index 64953c6..a46869a 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -79,10 +79,12 @@ extern int g_closedtracker;
79extern int g_check_blacklist; 79extern int g_check_blacklist;
80#endif 80#endif
81 81
82enum { STATS_MRTG, STATS_TOP5 };
83
82ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ); 84ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer );
83size_t return_peers_for_torrent( ot_torrent *torrent, unsigned int amount, char *reply ); 85size_t return_peers_for_torrent( ot_torrent *torrent, unsigned int amount, char *reply );
84size_t return_scrape_for_torrent( ot_hash *hash, char *reply ); 86size_t return_scrape_for_torrent( ot_hash *hash, char *reply );
85size_t return_stats_for_tracker( char *reply ); 87size_t return_stats_for_tracker( char *reply, int mode );
86void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer ); 88void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer );
87void cleanup_torrents( void ); 89void cleanup_torrents( void );
88 90