![]() |
Diffusion C API 6.11.7
|
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. | |
| 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.
diffusion_topic_view_free should be called on this pointer when no longer needed.
| topic_view | the topic_view to be copied. |
DIFFUSION_TOPIC_VIEW_T. NULL, if event is NULL. | void diffusion_topic_view_free | ( | DIFFUSION_TOPIC_VIEW_T * | topic_view | ) |
Free a memory allocated DIFFUSION_TOPIC_VIEW_T
| topic_view | the DIFFUSION_TOPIC_VIEW_T to be freed. |
| char * diffusion_topic_view_get_name | ( | const DIFFUSION_TOPIC_VIEW_T * | topic_view | ) |
Return a memory allocated copy of the topic view's name.
free should be called on this pointer when no longer needed.
| topic_view | the topic view |
| 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.
set_free should be called on this pointer when no longer needed.
| topic_view | the topic view |
| char * diffusion_topic_view_get_specification | ( | const DIFFUSION_TOPIC_VIEW_T * | topic_view | ) |
Return a memory allocated copy of the topic view's specification.
free should be called on this pointer when no longer needed.
| topic_view | the topic view |
| 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.
If a view with the same name already exists the new view will replace the existing view.
| session | The current session. If NULL, this function returns immediately. |
| params | Parameters defining the diffusion_topic_views_create_topic_view request and callbacks. |
| api_error | Populated on API error. Can be NULL. |
api_error pointer has been provided, this will be populated with the error information and should be freed with diffusion_api_error_free. | 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.
If the named view does not exist the handler on_topic_view will complete successfully with a NULL topic_view.
| session | The current session. If NULL, this function returns immediately. |
| params | Parameters defining the diffusion_topic_views_get_topic_view request and callbacks. |
| api_error | Populated on API error. Can be NULL. |
api_error pointer has been provided, this will be populated with the error information and should be freed with diffusion_api_error_free. | 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.
| session | The current session. If NULL, this function returns immediately. |
| params | Parameters defining the diffusion_topic_views_list_topic_views request and callbacks. |
| api_error | Populated on API error. Can be NULL. |
api_error pointer has been provided, this will be populated with the error information and should be freed with diffusion_api_error_free. | 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.
If the named view does not exist the handler on_topic_view_removed will complete successfully.
| session | The current session. If NULL, this function returns immediately. |
| params | Parameters defining the diffusion_topic_views_remove_topic_view request and callbacks. |
| api_error | Populated on API error. Can be NULL. |
api_error pointer has been provided, this will be populated with the error information and should be freed with diffusion_api_error_free.