Changeset 9522 for trunk/libtransmission/tr-dht.c
- Timestamp:
- Nov 14, 2009, 2:43:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/tr-dht.c
r9476 r9522 50 50 #include "utils.h" 51 51 #include "version.h" 52 53 #ifdef WITHOUT_DHT54 55 /**56 *** These are the stubs for when we're building without DHT support57 **/58 59 int tr_dhtInit( tr_session * session UNUSED,60 tr_address * address UNUSED ) { return TR_DHT_STOPPED; }61 62 void tr_dhtUninit( tr_session * session UNUSED ) { }63 64 tr_bool tr_dhtEnabled( const tr_session * session UNUSED ) { return FALSE; }65 66 tr_port tr_dhtPort ( const tr_session * sesssion UNUSED ) { return 0; }67 68 int tr_dhtStatus( tr_session * session UNUSED,69 int * setmeCount UNUSED ) { return TR_DHT_STOPPED; }70 71 int tr_dhtAddNode( tr_session * session UNUSED,72 const tr_address * addr UNUSED,73 tr_port port UNUSED,74 tr_bool bootstrap UNUSED ) { return 0; }75 76 int tr_dhtAnnounce( tr_torrent * session UNUSED,77 tr_bool announce UNUSED ) { return -1; }78 79 80 #else81 52 82 53 static int dht_socket; … … 471 442 return size; 472 443 } 473 474 #endif
Note: See TracChangeset
for help on using the changeset viewer.