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; extern int g_check_blacklist; #endif +enum { STATS_MRTG, STATS_TOP5 }; + ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ); size_t return_peers_for_torrent( ot_torrent *torrent, unsigned int amount, char *reply ); size_t return_scrape_for_torrent( ot_hash *hash, char *reply ); -size_t return_stats_for_tracker( char *reply ); +size_t return_stats_for_tracker( char *reply, int mode ); void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer ); void cleanup_torrents( void );