Diffusion C API 6.13.0
Loading...
Searching...
No Matches
session-trees.h File Reference

Data Structures

struct  diffusion_session_trees_put_branch_mapping_table_params_s
 Structure supplied when issuing a diffusion_session_trees_put_branch_mapping_table call. More...
struct  diffusion_session_trees_get_session_tree_branches_params_s
 Structure supplied when issuing a diffusion_session_trees_get_session_tree_branches call. More...
struct  diffusion_session_trees_get_branch_mapping_table_params_s
 Structure supplied when issuing a diffusion_session_trees_get_branch_mapping_table call. More...

Typedefs

typedef struct DIFFUSION_BRANCH_MAPPING_TABLE_BUILDER_T DIFFUSION_BRANCH_MAPPING_TABLE_BUILDER_T
 Opaque Branch Mapping Table Builder struct.
typedef struct DIFFUSION_BRANCH_MAPPING_TABLE_T DIFFUSION_BRANCH_MAPPING_TABLE_T
 Opaque Branch Mapping Table struct.
typedef struct DIFFUSION_BRANCH_MAPPING_T DIFFUSION_BRANCH_MAPPING_T
 Opaque Branch Mapping struct.
typedef int(* branch_mapping_table_set_cb) (void *context)
 callback when branch mapping table has been set on the server
typedef int(* get_session_tree_branches_cb) (const LIST_T *session_tree_branches, void *context)
 callback when branch mapping table has been set on the server
typedef int(* get_branch_mapping_table_cb) (const DIFFUSION_BRANCH_MAPPING_TABLE_T *table, void *context)
 callback when branch mapping table has been retrieved from the server
typedef struct diffusion_session_trees_put_branch_mapping_table_params_s DIFFUSION_SESSION_TREES_PUT_BRANCH_MAPPING_TABLE_PARAMS_T
 Structure supplied when issuing a diffusion_session_trees_put_branch_mapping_table call.
typedef struct diffusion_session_trees_get_session_tree_branches_params_s DIFFUSION_SESSION_TREES_GET_SESSION_TREE_BRANCHES_PARAMS_T
 Structure supplied when issuing a diffusion_session_trees_get_session_tree_branches call.
typedef struct diffusion_session_trees_get_branch_mapping_table_params_s DIFFUSION_SESSION_TREES_GET_BRANCH_MAPPING_TABLE_PARAMS_T
 Structure supplied when issuing a diffusion_session_trees_get_branch_mapping_table call.

Functions

DIFFUSION_BRANCH_MAPPING_TABLE_BUILDER_T * diffusion_branch_mapping_table_builder_init ()
 Initialise a new branch mapping table builder.
DIFFUSION_BRANCH_MAPPING_TABLE_BUILDER_T * diffusion_branch_mapping_table_builder_reset (DIFFUSION_BRANCH_MAPPING_TABLE_BUILDER_T *builder)
 Reset the stored branch mappings in the branch mapping table builder.
DIFFUSION_BRANCH_MAPPING_TABLE_BUILDER_T * diffusion_branch_mapping_table_builder_add_branch_mapping (DIFFUSION_BRANCH_MAPPING_TABLE_BUILDER_T *builder, char *session_filter, char *topic_tree_branch)
 Adds a new branch mapping with the specified values.
DIFFUSION_BRANCH_MAPPING_TABLE_T * diffusion_branch_mapping_table_builder_create_table (DIFFUSION_BRANCH_MAPPING_TABLE_BUILDER_T *builder, char *session_tree_branch)
 Creates a branch mapping table for the specified session tree branch.
void diffusion_branch_mapping_table_builder_free (DIFFUSION_BRANCH_MAPPING_TABLE_BUILDER_T *builder)
 Free a branch mapping table builder.
void diffusion_branch_mapping_table_free (DIFFUSION_BRANCH_MAPPING_TABLE_T *table)
 Free a branch mapping table.
char * diffusion_branch_mapping_table_get_session_tree_branch (DIFFUSION_BRANCH_MAPPING_TABLE_T *table)
 Get the session tree branch from a branch mapping table.
LIST_T * diffusion_branch_mapping_table_get_branch_mappings (DIFFUSION_BRANCH_MAPPING_TABLE_T *table)
 Get the branch mappings from a branch mapping table.
void diffusion_branch_mapping_table_free_branch_mappings (LIST_T *branch_mappings)
 Free a list containing branch mappings.
char * diffusion_branch_mapping_get_session_filter (DIFFUSION_BRANCH_MAPPING_T *mapping)
 Get the session filter from a branch mapping.
char * diffusion_branch_mapping_get_topic_tree_branch (DIFFUSION_BRANCH_MAPPING_T *mapping)
 Get the topic tree branch from a branch mapping.
bool diffusion_session_trees_put_branch_mapping_table (SESSION_T *session, const DIFFUSION_SESSION_TREES_PUT_BRANCH_MAPPING_TABLE_PARAMS_T params, DIFFUSION_API_ERROR *api_error)
 Create or replace a branch mapping table.
bool diffusion_session_trees_get_session_tree_branches (SESSION_T *session, const DIFFUSION_SESSION_TREES_GET_SESSION_TREE_BRANCHES_PARAMS_T params, DIFFUSION_API_ERROR *api_error)
 Retrieve the session tree branches of the server's branch mapping tables.
bool diffusion_session_trees_get_branch_mapping_table (SESSION_T *session, const DIFFUSION_SESSION_TREES_GET_BRANCH_MAPPING_TABLE_PARAMS_T params, DIFFUSION_API_ERROR *api_error)
 Retrieve a branch mapping table from the server.

Typedef Documentation

◆ branch_mapping_table_set_cb

typedef int(* branch_mapping_table_set_cb) (void *context)

callback when branch mapping table has been set on the server

Parameters
contextUser supplied context.
Returns
HANDLER_SUCCESS or HANDLER_FAILURE.

◆ get_branch_mapping_table_cb

typedef int(* get_branch_mapping_table_cb) (const DIFFUSION_BRANCH_MAPPING_TABLE_T *table, void *context)

callback when branch mapping table has been retrieved from the server

Parameters
tableThe branch mapping table.
contextUser supplied context.
Returns
HANDLER_SUCCESS or HANDLER_FAILURE.

◆ get_session_tree_branches_cb

typedef int(* get_session_tree_branches_cb) (const LIST_T *session_tree_branches, void *context)

callback when branch mapping table has been set on the server

Parameters
session_tree_branchesA list of session tree branches.
contextUser supplied context.
Returns
HANDLER_SUCCESS or HANDLER_FAILURE.