yumapro
24.10-2
YumaPro SDK
|
Global Server callbacks to integrate vendor instrumentation into the YANG module processing. More...
Data Structures | |
struct | agt_glob_cbset_t |
the Global Control Block stores a set of callbacks for each Global Callback [RPC, Action, EDIT2, EDIT3, GET2] More... | |
Functions | |
status_t | agt_glob_init (void) |
Initialize the Action handler. More... | |
void | agt_glob_cleanup (void) |
Cleanup the Global handler. More... | |
agt_glob_cbset_t * | agt_glob_get_cbset (void) |
Get the Global Cbset structure. More... | |
agt_rpc_method_t * | agt_glob_get_rpc_cbfn (obj_template_t *obj) |
Find RPC callback function if any for a specific OBJ. More... | |
agt_action_cb_t * | agt_glob_get_action_cbfn (obj_template_t *obj) |
Find Action callback function if any for a specific OBJ. More... | |
agt_cb_fn_t | agt_glob_get_edit2_cbfn (obj_template_t *obj) |
Find EDIT2 callback function if any for a specific OBJ. More... | |
agt_edit3_fn_t | agt_glob_get_edit3_cbfn (obj_template_t *obj) |
Find EDIT3 callback function if any for a specific OBJ. More... | |
boolean | agt_glob_has_rpc_callback (obj_template_t *obj) |
Check there is RPC callback. More... | |
boolean | agt_glob_has_action_callback (obj_template_t *obj) |
Check there is Action callback. More... | |
boolean | agt_glob_has_edit_callback (obj_template_t *obj) |
Check there is EDIT2 or EDIT3 callback. More... | |
status_t | agt_glob_register_rpc (agt_rpc_phase_t phase, agt_rpc_method_t cbfn) |
add callback for 1 phase of RPC processing More... | |
void | agt_glob_unregister_rpc (void) |
Unregister Global RPC callbacks. More... | |
status_t | agt_glob_register_action (agt_rpc_phase_t phase, agt_action_cb_t action_cb) |
add callback for 1 phase of Global Action processing More... | |
void | agt_glob_unregister_action (void) |
remove all Global callbacks for all phases of action processing More... | |
status_t | agt_glob_register_edit2 (agt_cb_fn_t cbfn) |
Register a Global EDIT2 callback. More... | |
status_t | agt_glob_register_edit3 (agt_edit3_fn_t cbfn) |
Register a Global EDIT3 callback. More... | |
void | agt_glob_unregister_edit (void) |
Unregister Global EDIT callbacks. More... | |
status_t | agt_glob_register_get (getcb_fn2_t cbfn) |
Register a Global GET2 callback. More... | |
void | agt_glob_unregister_get (void) |
Unregister Global GET2 callbacks. More... | |
boolean | agt_glob_edit2_enabled (void) |
Get the Global EDIT2 callbacks enabled flag. More... | |
boolean | agt_glob_edit3_enabled (void) |
Get the Global EDIT3 callbacks enabled flag. More... | |
status_t | agt_glob_setup_subsysQ (const xmlChar *subsys_id, agt_cb_calltype_t calltype) |
Malloc and init a new header for a subsystem. More... | |
dlq_hdr_t * | agt_glob_get_subsysQ (void) |
Get the Global callbacks subsystem Queue. More... | |
void | agt_glob_clean_subsysQ (void) |
Clean the SIL-SA subsysQ in cbset. More... | |
boolean | agt_glob_edit2_allowed (obj_template_t *obj) |
Check if EDIT2 or EDIT3 are allowed to be invoked. More... | |
Global Server callbacks to integrate vendor instrumentation into the YANG module processing.
void agt_glob_clean_subsysQ | ( | void | ) |
Clean the SIL-SA subsysQ in cbset.
INTERNAL API
void agt_glob_cleanup | ( | void | ) |
Cleanup the Global handler.
INTERNAL API
Cleanup the Global handler
boolean agt_glob_edit2_allowed | ( | obj_template_t * | obj | ) |
Check if EDIT2 or EDIT3 are allowed to be invoked.
SIL-SA version only. Used to Make sure to invoke callbacks if they do not have cbset setup but only if this is EDIT2 or EDIT3 Global Callbacks.
INTERNAL API
obj | object to check |
boolean agt_glob_edit2_enabled | ( | void | ) |
Get the Global EDIT2 callbacks enabled flag.
INTERNAL API
boolean agt_glob_edit3_enabled | ( | void | ) |
Get the Global EDIT3 callbacks enabled flag.
INTERNAL API
agt_action_cb_t * agt_glob_get_action_cbfn | ( | obj_template_t * | obj | ) |
Find Action callback function if any for a specific OBJ.
INTERNAL API
obj | the obj_template_t to check |
agt_glob_cbset_t * agt_glob_get_cbset | ( | void | ) |
Get the Global Cbset structure.
INTERNAL API
agt_cb_fn_t agt_glob_get_edit2_cbfn | ( | obj_template_t * | obj | ) |
Find EDIT2 callback function if any for a specific OBJ.
INTERNAL API
obj | the obj_template_t to check |
agt_edit3_fn_t agt_glob_get_edit3_cbfn | ( | obj_template_t * | obj | ) |
Find EDIT3 callback function if any for a specific OBJ.
INTERNAL API
obj | the obj_template_t to check |
agt_rpc_method_t * agt_glob_get_rpc_cbfn | ( | obj_template_t * | obj | ) |
Find RPC callback function if any for a specific OBJ.
INTERNAL API
obj | the obj_template_t to check |
dlq_hdr_t * agt_glob_get_subsysQ | ( | void | ) |
Get the Global callbacks subsystem Queue.
INTERNAL API
boolean agt_glob_has_action_callback | ( | obj_template_t * | obj | ) |
Check there is Action callback.
Check if the OBJ has any callbacks setup for it; Global or registered OBJ specific.
INTERNAL API
obj | the obj_template_t to check |
boolean agt_glob_has_edit_callback | ( | obj_template_t * | obj | ) |
Check there is EDIT2 or EDIT3 callback.
Check if the OBJ has EDIT2 or EDIT3 callbacks setup for it
INTERNAL API
obj | the obj_template_t to check |
boolean agt_glob_has_rpc_callback | ( | obj_template_t * | obj | ) |
Check there is RPC callback.
Check if the OBJ has any callbacks setup for it; Global or registered OBJ specific.
INTERNAL API
obj | the obj_template_t to check |
status_t agt_glob_init | ( | void | ) |
Initialize the Action handler.
INTERNAL API
status_t agt_glob_register_action | ( | agt_rpc_phase_t | phase, |
agt_action_cb_t | action_cb | ||
) |
add callback for 1 phase of Global Action processing
phase | action server callback phase for this callback
|
action_cb | pointer to callback function to register |
status_t agt_glob_register_edit2 | ( | agt_cb_fn_t | cbfn | ) |
Register a Global EDIT2 callback.
This function registers a Global EDIT2 callback that will be called if there are no any other EDIT2 or EDIT3 callbacks registered to the current target object.
cbfn | address of EDIT2 callback function to use |
status_t agt_glob_register_edit3 | ( | agt_edit3_fn_t | cbfn | ) |
Register a Global EDIT3 callback.
This function registers a Global EDIT3 callback that will be called if there are no any other EDIT3 or EDIT2 callbacks registered to the current target object.
cbfn | address of EDIT3 callback function to use |
status_t agt_glob_register_get | ( | getcb_fn2_t | cbfn | ) |
Register a Global GET2 callback.
This function registers a Global GET2 callback that will be called if there are no any other GET2 callbacks registered to the current target object.
cbfn | address of GET2 callback function to use |
status_t agt_glob_register_rpc | ( | agt_rpc_phase_t | phase, |
agt_rpc_method_t | cbfn | ||
) |
add callback for 1 phase of RPC processing
This function registers a Global RPC callback that will be called if there are no any other RPC callbacks registered to the current RPC target object.
phase | RPC server callback phase for this callback
|
cbfn | pointer to callback function to register |
status_t agt_glob_setup_subsysQ | ( | const xmlChar * | subsys_id, |
agt_cb_calltype_t | calltype | ||
) |
Malloc and init a new header for a subsystem.
INTERNAL API
subsys_id | subsystem ID string |
calltype | subsystem callback call type enumeration |
void agt_glob_unregister_action | ( | void | ) |
remove all Global callbacks for all phases of action processing
void agt_glob_unregister_edit | ( | void | ) |
Unregister Global EDIT callbacks.
This function unregisters Global EDIT callbacks.
void agt_glob_unregister_get | ( | void | ) |
Unregister Global GET2 callbacks.
This function unregisters Global GET2 callbacks.
void agt_glob_unregister_rpc | ( | void | ) |
Unregister Global RPC callbacks.
This function unregisters Global RPC callbacks. All methods