Diffusion C API 6.13.0
Loading...
Searching...
No Matches
topic-notification-registration.h File Reference

Data Structures

struct  diffusion_topic_notification_registration_params_s
 Structure supplied when issuing a diffusion_topic_notification_registration_select or diffusion_topic_notification_registration_deselect request. More...

Typedefs

typedef int(* on_selected_cb) (void *context)
 Callback when topic notifications for a topic selector has successfully been selected.
typedef int(* on_deselected_cb) (void *context)
 Callback when topic notifications for a topic selector has successfully been deselected.
typedef struct diffusion_topic_notification_registration_params_s DIFFUSION_TOPIC_NOTIFICATION_REGISTRATION_PARAMS_T
 Structure supplied when issuing a diffusion_topic_notification_registration_select or diffusion_topic_notification_registration_deselect request.

Functions

bool diffusion_topic_notification_registration_select (SESSION_T *session, const DIFFUSION_TOPIC_NOTIFICATION_REGISTRATION_PARAMS_T params, DIFFUSION_API_ERROR *api_error)
 Request to receive notifications for all topics matched by the provided selector.
bool diffusion_topic_notification_registration_deselect (SESSION_T *session, const DIFFUSION_TOPIC_NOTIFICATION_REGISTRATION_PARAMS_T params, DIFFUSION_API_ERROR *api_error)
 Request to stop receiving notifications for all topics matched by the given selector.

Typedef Documentation

◆ on_deselected_cb

typedef int(* on_deselected_cb) (void *context)

Callback when topic notifications for a topic selector has successfully been deselected.

Parameters
contextUser supplied context.
Returns
HANDLER_SUCCESS or HANDLER_FAILURE.

◆ on_selected_cb

typedef int(* on_selected_cb) (void *context)

Callback when topic notifications for a topic selector has successfully been selected.

Parameters
contextUser supplied context.
Returns
HANDLER_SUCCESS or HANDLER_FAILURE.