Changeset 7528 for trunk/libtransmission/tracker.c
- Timestamp:
- Dec 29, 2008, 6:10:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/tracker.c
r7476 r7528 93 93 tr_session * session; 94 94 95 tr_publisher _t *publisher;95 tr_publisher publisher; 96 96 97 97 /* torrent hash string */ … … 200 200 event.messageType = type; 201 201 event.text = msg; 202 tr_publisherPublish( t->publisher, t, &event );202 tr_publisherPublish( &t->publisher, t, &event ); 203 203 } 204 204 } … … 239 239 event.compactLen = compactLen; 240 240 if( compactLen ) 241 tr_publisherPublish( t->publisher, t, &event );241 tr_publisherPublish( &t->publisher, t, &event ); 242 242 } 243 243 … … 1049 1049 1050 1050 t = tr_new0( tr_tracker, 1 ); 1051 t->publisher = tr_publisherNew( );1051 t->publisher = TR_PUBLISHER_INIT; 1052 1052 t->session = torrent->session; 1053 1053 t->scrapeIntervalSec = DEFAULT_SCRAPE_INTERVAL_SEC; … … 1082 1082 tr_tracker * t = vt; 1083 1083 1084 tr_publisher Free( &t->publisher );1084 tr_publisherDestruct( &t->publisher ); 1085 1085 tr_free( t->name ); 1086 1086 tr_free( t->trackerID ); … … 1106 1106 void * user_data ) 1107 1107 { 1108 return tr_publisherSubscribe( t->publisher, func, user_data );1108 return tr_publisherSubscribe( &t->publisher, func, user_data ); 1109 1109 } 1110 1110 … … 1114 1114 { 1115 1115 if( t ) 1116 tr_publisherUnsubscribe( t->publisher, tag );1116 tr_publisherUnsubscribe( &t->publisher, tag ); 1117 1117 } 1118 1118
Note: See TracChangeset
for help on using the changeset viewer.