yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches

Callbacks are registered by the server to handle events related to loading and unloading YANG modules from the YANG Library. More...

Collaboration diagram for User Callbacks:

Functions

status_t ncx_set_load_callback (ncx_load_cbfn_t cbfn)
 Set the callback function for a load-module event. More...
 
void ncx_clear_load_callback (ncx_load_cbfn_t cbfn)
 Clear the callback function for a load-module event. More...
 
status_t ncx_set_unload_callback (ncx_unload_cbfn_t cbfn)
 Set the callback function for an unload-module event. More...
 
void ncx_clear_unload_callback (ncx_unload_cbfn_t cbfn)
 Clear the callback function for an unload-module event. More...
 
status_t ncx_set_yang_obj_callback (ncx_yang_obj_cbfn_t cbfn)
 Set the callback function for a YANG object parse event. More...
 
void ncx_clear_yang_obj_callback (ncx_yang_obj_cbfn_t cbfn)
 Clear the callback function for a parse-object event. More...
 
void ncx_invoke_yang_obj_callbacks (ncx_module_t *mod, obj_template_t *obj)
 Invoke all the callback functions for a parse-object event. More...
 
void ncx_register_get_owner_fn (ncx_get_owner_fn_t cbfn)
 Register a callback to get the owner name. More...
 
const xmlChar * ncx_get_owner_name (ncx_owner_id_t owner_id)
 Get the registered YANG library owner namefor owner_id. More...
 

Detailed Description

Callbacks are registered by the server to handle events related to loading and unloading YANG modules from the YANG Library.

Callbacks are invoked when a module is loaded or unloaded.

Function Documentation

◆ ncx_clear_load_callback()

void ncx_clear_load_callback ( ncx_load_cbfn_t  cbfn)

Clear the callback function for a load-module event.

Parameters
cbfncallback function to use
Here is the caller graph for this function:

◆ ncx_clear_unload_callback()

void ncx_clear_unload_callback ( ncx_unload_cbfn_t  cbfn)

Clear the callback function for an unload-module event.

Parameters
cbfncallback function to use
Here is the caller graph for this function:

◆ ncx_clear_yang_obj_callback()

void ncx_clear_yang_obj_callback ( ncx_yang_obj_cbfn_t  cbfn)

Clear the callback function for a parse-object event.

Parameters
cbfncallback function to find and clear

◆ ncx_get_owner_name()

const xmlChar * ncx_get_owner_name ( ncx_owner_id_t  owner_id)

Get the registered YANG library owner namefor owner_id.

Parameters
owner_idowner identifier value to find string value
Returns
string value for the owner ID or NULL if not found
Here is the caller graph for this function:

◆ ncx_invoke_yang_obj_callbacks()

void ncx_invoke_yang_obj_callbacks ( ncx_module_t mod,
obj_template_t obj 
)

Invoke all the callback functions for a parse-object event.

Parameters
modmodule parameter
objobject parameter

◆ ncx_register_get_owner_fn()

void ncx_register_get_owner_fn ( ncx_get_owner_fn_t  cbfn)

Register a callback to get the owner name.

Parameters
cbfncallback function to register
Here is the caller graph for this function:

◆ ncx_set_load_callback()

status_t ncx_set_load_callback ( ncx_load_cbfn_t  cbfn)

Set the callback function for a load-module event.

Parameters
cbfncallback function to use
Returns
status
Here is the caller graph for this function:

◆ ncx_set_unload_callback()

status_t ncx_set_unload_callback ( ncx_unload_cbfn_t  cbfn)

Set the callback function for an unload-module event.

Parameters
cbfncallback function to use
Returns
status
Here is the caller graph for this function:

◆ ncx_set_yang_obj_callback()

status_t ncx_set_yang_obj_callback ( ncx_yang_obj_cbfn_t  cbfn)

Set the callback function for a YANG object parse event.

Parameters
cbfncallback function to set
Returns
status