10 #define PUBLISHER_SUCCESS (0)    11 #define PUBLISHER_FAILED (-1) SubscriberAccount class member definition, to get by publisher_subscribe. 
 
SubscriberAccount publisher_subscribe(int content_id, int publish_type, void(*notify)(int publish_type, void *detail, void *ctx), void *ctx)
subscribe 
 
void publisher_free(void)
free All publisher content 
 
void(* notify)(int publish_type, void *detail, void *ctx)
 
int publisher_new(size_t contents_num)
new Publisher content, user can get notify to subscribe. 
 
void publisher_publish(int content_id, int publish_type, void *detail)
publish, Publisher call subscriber's notify if type is same 
 
struct subscriber_account_t * SubscriberAccount
 
void publisher_unsubscribe(int content_id, SubscriberAccount account)
unsubscribe, if you want to stop subscribe, please call it 
 
void publisher_subscribe_oneshot(int content_id, int publish_type, void(*notify)(int publish_type, void *detail, void *ctx), void *ctx)
subscribe only oneshot