Changeset 7528 for trunk/libtransmission/publish.c
- Timestamp:
- Dec 29, 2008, 6:10:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/publish.c
r7404 r7528 22 22 }; 23 23 24 struct tr_publisher_s 25 { 26 tr_list * list; 27 }; 28 29 tr_publisher_t* 30 tr_publisherNew( void ) 31 { 32 return tr_new0( tr_publisher_t, 1 ); 33 } 24 const tr_publisher TR_PUBLISHER_INIT = { NULL }; 34 25 35 26 void 36 tr_publisher Free( tr_publisher_t ** p )27 tr_publisherDestruct( tr_publisher * p ) 37 28 { 38 assert( p ); 39 assert( *p ); 40 41 tr_list_free( &( *p )->list, NULL ); 42 tr_free( *p ); 43 *p = NULL; 29 tr_list_free( &p->list, NULL ); 44 30 } 45 31 46 32 tr_publisher_tag 47 tr_publisherSubscribe( tr_publisher _t* p,48 tr_delivery_func func,49 void * user_data )33 tr_publisherSubscribe( tr_publisher * p, 34 tr_delivery_func func, 35 void * user_data ) 50 36 { 51 37 struct tr_publisher_node * node = tr_new( struct tr_publisher_node, 1 ); … … 58 44 59 45 void 60 tr_publisherUnsubscribe( tr_publisher _t* p,46 tr_publisherUnsubscribe( tr_publisher * p, 61 47 tr_publisher_tag tag ) 62 48 { … … 66 52 67 53 void 68 tr_publisherPublish( tr_publisher _t* p,54 tr_publisherPublish( tr_publisher * p, 69 55 void * source, 70 56 void * event )
Note: See TracChangeset
for help on using the changeset viewer.