Data Structures | |
| struct | diffusion_topic_notification_listener_s |
| Structure for adding a topic notification listener. More... | |
Typedefs | |
| typedef int(* | on_listener_registered_cb) (const DIFFUSION_REGISTRATION_T *registration, void *context) |
| Callback when the listener has successfully been registered. | |
| typedef int(* | on_descendant_notification_cb) (const char *topic_path, const DIFFUSION_TOPIC_NOTIFICATION_TYPE_T type, void *context) |
| Notification for an immediate descendant of a selected topic path. | |
| typedef int(* | on_topic_notification_cb) (const char *topic_path, const TOPIC_SPECIFICATION_T *specification, const DIFFUSION_TOPIC_NOTIFICATION_TYPE_T type, void *context) |
| A notification for a selected topic. | |
| typedef void(* | on_topic_notification_listener_close_cb) (void) |
| Callback for when a topic notification listener has been closed. | |
| typedef struct diffusion_topic_notification_listener_s | DIFFUSION_TOPIC_NOTIFICATION_LISTENER_T |
| Structure for adding a topic notification listener. | |
Enumerations | |
| enum | DIFFUSION_TOPIC_NOTIFICATION_TYPE_T { TOPIC_ADDED , TOPIC_SELECTED , TOPIC_REMOVED , TOPIC_DESELECTED } |
Functions | |
| bool | diffusion_topic_notification_add_listener (SESSION_T *session, const DIFFUSION_TOPIC_NOTIFICATION_LISTENER_T listener, DIFFUSION_API_ERROR *api_error) |
| Register a listener to receive topic notifications. | |
| typedef int(* on_descendant_notification_cb) (const char *topic_path, const DIFFUSION_TOPIC_NOTIFICATION_TYPE_T type, void *context) |
Notification for an immediate descendant of a selected topic path.
This notifies the presence or absence of a descendant topic that may subsequently be explicitly selected.
| topic_path | The path of the immediate descendant that is not selected. |
| type | The type of notification. |
| context | User supplied context. |
| typedef int(* on_listener_registered_cb) (const DIFFUSION_REGISTRATION_T *registration, void *context) |
Callback when the listener has successfully been registered.
| registration | The registration for topic notifications. |
| context | User supplied context. |
| typedef int(* on_topic_notification_cb) (const char *topic_path, const TOPIC_SPECIFICATION_T *specification, const DIFFUSION_TOPIC_NOTIFICATION_TYPE_T type, void *context) |
A notification for a selected topic.
| topic_path | The path of the topic that this notification is for. |
| specification | The specification of the topic that this notification is for |
| type | The type of notification. |
| context | User supplied context. |