summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index 8a61b74..083c437 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -64,7 +64,7 @@ static const ot_byte PEER_FLAG_STOPPED = 0x20;
64typedef struct { 64typedef struct {
65 ot_time base; 65 ot_time base;
66 size_t seed_count[ OT_POOLS_COUNT ]; 66 size_t seed_count[ OT_POOLS_COUNT ];
67 unsigned int downloaded; 67 size_t downloaded;
68 ot_vector peers[ OT_POOLS_COUNT ]; 68 ot_vector peers[ OT_POOLS_COUNT ];
69} ot_peerlist; 69} ot_peerlist;
70 70
@@ -77,8 +77,8 @@ typedef struct {
77 Exported functions 77 Exported functions
78*/ 78*/
79 79
80int init_logic( char *serverdir ); 80int init_logic( const char * const serverdir );
81void deinit_logic( ); 81void deinit_logic( void );
82 82
83#ifdef WANT_CLOSED_TRACKER 83#ifdef WANT_CLOSED_TRACKER
84extern int g_closedtracker; 84extern int g_closedtracker;
@@ -90,9 +90,10 @@ extern int g_check_blacklist;
90enum { STATS_MRTG, STATS_TOP5 }; 90enum { STATS_MRTG, STATS_TOP5 };
91 91
92ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ); 92ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer );
93size_t return_peers_for_torrent( ot_torrent *torrent, unsigned int amount, char *reply ); 93size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply );
94size_t return_fullscrape_for_tracker( char **reply ); 94size_t return_fullscrape_for_tracker( char **reply );
95size_t return_scrape_for_torrent( ot_hash *hash, char *reply ); 95size_t return_scrape_for_torrent( ot_hash *hash, char *reply );
96size_t return_sync_for_torrent( ot_hash *hash, char **reply );
96size_t return_stats_for_tracker( char *reply, int mode ); 97size_t return_stats_for_tracker( char *reply, int mode );
97void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer ); 98void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer );
98 99