Diffusion C API  6.7.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
topic-notification-registration.h File Reference

The registration state of the associated listener on the server. More...

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. More...
 
typedef int(* on_deselected_cb )(void *context)
 Callback when topic notifications for a topic selector has successfully been deselected. More...
 
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. More...
 
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. More...
 

Detailed Description

The registration state of the associated listener on the server.

The registration also provides operations to control which topic paths the listener will receive notifications for.

Typedef Documentation

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.
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.