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

Data Structures

struct  diffusion_create_topic_view_params_s
 Structure describing a request to create a topic view. More...
struct  diffusion_topic_views_list_params_s
 Structure describing a request to list topic views. More...
struct  diffusion_remove_topic_view_params_s
 Structure describing a request to remove a topic view. More...
struct  diffusion_get_topic_view_params_s
 Structure describing a request to get a topic view. More...

Typedefs

typedef struct DIFFUSION_TOPIC_VIEW_T DIFFUSION_TOPIC_VIEW_T
 Opaque topic view struct.
typedef int(* on_topic_view_created_cb) (const DIFFUSION_TOPIC_VIEW_T *topic_view, void *context)
 Callback when a topic view has successfully been created.
typedef int(* on_topic_view_response_cb) (void *context)
 Callback when a response is received from the server regarding a topic view operation.
typedef int(* on_topic_view_retrieved_cb) (const DIFFUSION_TOPIC_VIEW_T *topic_view, void *context)
 Callback when a topic view has successfully been retrieved.
typedef int(* on_topic_views_list_cb) (const LIST_T *topic_views, void *context)
 Callback when a response is received from the server regarding a diffusion_topic_views_list_topic_views operation.
typedef struct diffusion_create_topic_view_params_s DIFFUSION_CREATE_TOPIC_VIEW_PARAMS_T
 Structure describing a request to create a topic view.
typedef struct diffusion_topic_views_list_params_s DIFFUSION_TOPIC_VIEWS_LIST_PARAMS_T
 Structure describing a request to list topic views.
typedef struct diffusion_remove_topic_view_params_s DIFFUSION_REMOVE_TOPIC_VIEW_PARAMS_T
 Structure describing a request to remove a topic view.
typedef struct diffusion_get_topic_view_params_s DIFFUSION_GET_TOPIC_VIEW_PARAMS_T
 Structure describing a request to get a topic view.

Functions

char * diffusion_topic_view_get_name (const DIFFUSION_TOPIC_VIEW_T *topic_view)
 Return a memory allocated copy of the topic view's name.
char * diffusion_topic_view_get_specification (const DIFFUSION_TOPIC_VIEW_T *topic_view)
 Return a memory allocated copy of the topic view's specification.
SET_T * diffusion_topic_view_get_roles (const DIFFUSION_TOPIC_VIEW_T *topic_view)
 Return a memory allocated SET_T of the topic view's roles.
DIFFUSION_TOPIC_VIEW_T * diffusion_topic_view_dup (const DIFFUSION_TOPIC_VIEW_T *topic_view)
 Returns a memory allocated copy of a DIFFUSION_TOPIC_VIEW_T.
void diffusion_topic_view_free (DIFFUSION_TOPIC_VIEW_T *topic_view)
 Free a memory allocated DIFFUSION_TOPIC_VIEW_T
bool diffusion_topic_views_create_topic_view (SESSION_T *session, const DIFFUSION_CREATE_TOPIC_VIEW_PARAMS_T params, DIFFUSION_API_ERROR *api_error)
 Create a new named topic view.
bool diffusion_topic_views_list_topic_views (SESSION_T *session, const DIFFUSION_TOPIC_VIEWS_LIST_PARAMS_T params, DIFFUSION_API_ERROR *api_error)
 List all the topic views that have been created.
bool diffusion_topic_views_remove_topic_view (SESSION_T *session, const DIFFUSION_REMOVE_TOPIC_VIEW_PARAMS_T params, DIFFUSION_API_ERROR *api_error)
 Remove a named topic view if it exists.
bool diffusion_topic_views_get_topic_view (SESSION_T *session, const DIFFUSION_GET_TOPIC_VIEW_PARAMS_T params, DIFFUSION_API_ERROR *api_error)
 Get a named Topic View.

Typedef Documentation

◆ DIFFUSION_CREATE_TOPIC_VIEW_PARAMS_T

Structure describing a request to create a topic view.

If the name is empty, the operation will fail.

◆ on_topic_view_created_cb

typedef int(* on_topic_view_created_cb) (const DIFFUSION_TOPIC_VIEW_T *topic_view, void *context)

Callback when a topic view has successfully been created.

Parameters
topic_viewThe created topic view.
contextUser supplied context.
Returns
HANDLERS_SUCCESS or HANDLER_FAILURE.

◆ on_topic_view_response_cb

typedef int(* on_topic_view_response_cb) (void *context)

Callback when a response is received from the server regarding a topic view operation.

Parameters
contextUser supplied context.
Returns
HANDLERS_SUCCESS or HANDLER_FAILURE.

◆ on_topic_view_retrieved_cb

typedef int(* on_topic_view_retrieved_cb) (const DIFFUSION_TOPIC_VIEW_T *topic_view, void *context)

Callback when a topic view has successfully been retrieved.

Parameters
topic_viewThe retrieved topic view.
contextUser supplied context.
Returns
HANDLERS_SUCCESS or HANDLER_FAILURE.

◆ on_topic_views_list_cb

typedef int(* on_topic_views_list_cb) (const LIST_T *topic_views, void *context)

Callback when a response is received from the server regarding a diffusion_topic_views_list_topic_views operation.

Parameters
topic_viewsA LIST_T containing DIFFUSION_TOPIC_VIEW_Ts
contextUser supplied context.
Returns
HANDLERS_SUCCESS or HANDLER_FAILURE.