design_pattern_for_c
V 1.00
|
This is API for PublishContent class which managed in Publisher. More...
#include "publisher.h"
Go to the source code of this file.
Typedefs | |
typedef struct publish_content_t | publish_content_t |
typedef struct publish_content_t * | PublishContent |
Functions | |
PublishContent | publish_content_new (void) |
SubscriberAccount | publish_content_subscribe (PublishContent this, int publish_type, void(*notify)(int publish_type, void *detail, void *ctx), void *ctx) |
void | publish_content_subscribe_oneshot (PublishContent this, int publish_type, void(*notify)(int publish_type, void *detail, void *ctx), void *ctx) |
void | publish_content_unsubscribe (PublishContent this, SubscriberAccount account) |
void | publish_content_publish (PublishContent content, int publish_type, void *detail) |
void | publish_content_free (PublishContent content) |
This is API for PublishContent class which managed in Publisher.
Definition in file publish_content.h.
typedef struct publish_content_t publish_content_t |
Definition at line 14 of file publish_content.h.
typedef struct publish_content_t * PublishContent |
Definition at line 14 of file publish_content.h.
void publish_content_free | ( | PublishContent | content | ) |
Definition at line 116 of file publish_content.c.
PublishContent publish_content_new | ( | void | ) |
void publish_content_publish | ( | PublishContent | content, |
int | publish_type, | ||
void * | detail | ||
) |
Definition at line 91 of file publish_content.c.
SubscriberAccount publish_content_subscribe | ( | PublishContent | this, |
int | publish_type, | ||
void(*)(int publish_type, void *detail, void *ctx) | notify, | ||
void * | ctx | ||
) |
Definition at line 55 of file publish_content.c.
void publish_content_subscribe_oneshot | ( | PublishContent | this, |
int | publish_type, | ||
void(*)(int publish_type, void *detail, void *ctx) | notify, | ||
void * | ctx | ||
) |
Definition at line 70 of file publish_content.c.
void publish_content_unsubscribe | ( | PublishContent | this, |
SubscriberAccount | account | ||
) |
Definition at line 84 of file publish_content.c.