Changeset 7528 for trunk/libtransmission/publish.h
- Timestamp:
- Dec 29, 2008, 6:10:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/publish.h
r7404 r7528 18 18 #define _TR_PUBLISHER_H_ 19 19 20 struct tr_list; 21 20 22 /** 21 23 *** A lightweight implementation of the 'Observable' design pattern. 22 24 **/ 23 25 24 typedef struct tr_publisher_s tr_publisher_t; 26 typedef struct tr_publisher 27 { 28 struct tr_list * list; 29 } 30 tr_publisher; 25 31 26 32 typedef void * tr_publisher_tag; … … 34 40 **/ 35 41 36 tr_publisher_tag tr_publisherSubscribe( tr_publisher _t* publisher,42 tr_publisher_tag tr_publisherSubscribe( tr_publisher * publisher, 37 43 tr_delivery_func delivery_func, 38 44 void * user_data ); 39 45 40 void tr_publisherUnsubscribe( tr_publisher _t* publisher,46 void tr_publisherUnsubscribe( tr_publisher * publisher, 41 47 tr_publisher_tag tag ); 42 48 … … 45 51 **/ 46 52 47 tr_publisher_t * tr_publisherNew( void );53 extern const tr_publisher TR_PUBLISHER_INIT; 48 54 49 void tr_publisher Free( tr_publisher_t ** publisher);55 void tr_publisherDestruct( tr_publisher * ); 50 56 51 void tr_publisherPublish( tr_publisher _t* publisher,57 void tr_publisherPublish( tr_publisher * publisher, 52 58 void * source, 53 59 void * event );
Note: See TracChangeset
for help on using the changeset viewer.