Changeset 13625 for trunk/libtransmission/announcer.h
- Timestamp:
- Dec 5, 2012, 5:29:46 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/announcer.h
r12237 r13625 3 3 * 4 4 * This file is licensed by the GPL version 2. Works owned by the 5 * Transmission project are granted a special exemption to clause 2 (b)5 * Transmission project are granted a special exemption to clause 2 (b) 6 6 * so that the bulk of its code can remain under the MIT license. 7 7 * This exemption does not extend to derived works not owned by … … 57 57 tr_tracker_event; 58 58 59 typedef void tr_tracker_callback ( 59 typedef void tr_tracker_callback (tr_torrent * tor, 60 60 const tr_tracker_event * event, 61 void * client_data 61 void * client_data); 62 62 63 63 /** … … 65 65 **/ 66 66 67 void tr_announcerInit ( tr_session *);67 void tr_announcerInit (tr_session *); 68 68 69 void tr_announcerClose ( tr_session *);69 void tr_announcerClose (tr_session *); 70 70 71 71 /** … … 73 73 **/ 74 74 75 struct tr_torrent_tiers * tr_announcerAddTorrent (tr_torrent * torrent,75 struct tr_torrent_tiers * tr_announcerAddTorrent (tr_torrent * torrent, 76 76 tr_tracker_callback * cb, 77 void * cbdata 77 void * cbdata); 78 78 79 bool tr_announcerHasBacklog ( const struct tr_announcer *);79 bool tr_announcerHasBacklog (const struct tr_announcer *); 80 80 81 void tr_announcerResetTorrent ( struct tr_announcer*, tr_torrent*);81 void tr_announcerResetTorrent (struct tr_announcer*, tr_torrent*); 82 82 83 void tr_announcerRemoveTorrent (struct tr_announcer * ,84 tr_torrent * 83 void tr_announcerRemoveTorrent (struct tr_announcer * , 84 tr_torrent *); 85 85 86 void tr_announcerChangeMyPort ( tr_torrent *);86 void tr_announcerChangeMyPort (tr_torrent *); 87 87 88 bool tr_announcerCanManualAnnounce ( const tr_torrent *);88 bool tr_announcerCanManualAnnounce (const tr_torrent *); 89 89 90 void tr_announcerManualAnnounce ( tr_torrent *);90 void tr_announcerManualAnnounce (tr_torrent *); 91 91 92 void tr_announcerTorrentStarted ( tr_torrent *);93 void tr_announcerTorrentStopped ( tr_torrent *);94 void tr_announcerTorrentCompleted ( tr_torrent *);92 void tr_announcerTorrentStarted (tr_torrent *); 93 void tr_announcerTorrentStopped (tr_torrent *); 94 void tr_announcerTorrentCompleted (tr_torrent *); 95 95 96 96 enum { TR_ANN_UP, TR_ANN_DOWN, TR_ANN_CORRUPT }; 97 void tr_announcerAddBytes ( tr_torrent *, int up_down_or_corrupt, uint32_t byteCount);97 void tr_announcerAddBytes (tr_torrent *, int up_down_or_corrupt, uint32_t byteCount); 98 98 99 time_t tr_announcerNextManualAnnounce ( const tr_torrent *);99 time_t tr_announcerNextManualAnnounce (const tr_torrent *); 100 100 101 tr_tracker_stat * tr_announcerStats (const tr_torrent * torrent,102 int * setmeTrackerCount 101 tr_tracker_stat * tr_announcerStats (const tr_torrent * torrent, 102 int * setmeTrackerCount); 103 103 104 void tr_announcerStatsFree (tr_tracker_stat * trackers,105 int trackerCount 104 void tr_announcerStatsFree (tr_tracker_stat * trackers, 105 int trackerCount); 106 106 107 107 /*** … … 109 109 ***/ 110 110 111 void tr_tracker_udp_upkeep ( tr_session * session);111 void tr_tracker_udp_upkeep (tr_session * session); 112 112 113 void tr_tracker_udp_close ( tr_session * session);113 void tr_tracker_udp_close (tr_session * session); 114 114 115 bool tr_tracker_udp_is_idle ( const tr_session * session);115 bool tr_tracker_udp_is_idle (const tr_session * session); 116 116 117 117
Note: See TracChangeset
for help on using the changeset viewer.