summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-04-13 12:26:08 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-04-13 12:26:08 +0200
commit2eeae0a65a137ab1796ff93133201cfcf3cab750 (patch)
treec72ec77bd797c69e321a0478596e525e70143cae /trackerlogic.h
parent3a6d99dd467b9bd33146891db1eabc08c1fe04cf (diff)
Allow opentracker to start with a random set of torrents for debugging purposes
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index bc488c9..7e6e8ad 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -190,7 +190,9 @@ size_t remove_peer_from_torrent( PROTO_FLAG proto, struct ot_workstruct *ws );
190size_t return_tcp_scrape_for_torrent( ot_hash const *hash_list, int amount, char *reply ); 190size_t return_tcp_scrape_for_torrent( ot_hash const *hash_list, int amount, char *reply );
191size_t return_udp_scrape_for_torrent( ot_hash const hash, char *reply ); 191size_t return_udp_scrape_for_torrent( ot_hash const hash, char *reply );
192void add_torrent_from_saved_state( ot_hash const hash, ot_time base, size_t down_count ); 192void add_torrent_from_saved_state( ot_hash const hash, ot_time base, size_t down_count );
193#ifdef _DEBUG_RANDOMTORRENTS
193void trackerlogic_add_random_torrents(size_t amount); 194void trackerlogic_add_random_torrents(size_t amount);
195#endif
194 196
195/* torrent iterator */ 197/* torrent iterator */
196void iterate_all_torrents( int (*for_each)( ot_torrent* torrent, uintptr_t data ), uintptr_t data ); 198void iterate_all_torrents( int (*for_each)( ot_torrent* torrent, uintptr_t data ), uintptr_t data );