yumapro
24.10-2
YumaPro SDK
|
Schema Item Identifier Dictionary utilities. More...
Go to the source code of this file.
Macros | |
#define | SID_DICT_SERVER 1 |
the SID tree ID for the server is always 1 | |
Functions | |
status_t | sid_dict_init (void) |
Initialize the YANG SID dictionary. More... | |
void | sid_dict_cleanup (void) |
Cleanup the YANG SID dictionary. More... | |
status_t | sid_dict_add_data (uint32 id, obj_template_t *obj, boolean internal) |
Store a data item in the SID item dict. More... | |
bool | sid_dict_remove_data (uint32 id, obj_template_t *obj) |
Remove a data object from the SID item dict. More... | |
status_t | sid_dict_find_data (uint32 id, ncx_sid_t sid, obj_template_t **obj) |
Find a data item in the SID item dictionary. More... | |
status_t | sid_dict_add_module (uint32 id, ncx_module_t *mod, boolean internal) |
Store a module item in the SID item dict. More... | |
bool | sid_dict_remove_module (uint32 id, ncx_module_t *mod) |
Remove a module object from the SID item dict. More... | |
status_t | sid_dict_find_module (uint32 id, ncx_sid_t sid, ncx_module_t **mod) |
Find a module item in the SID item dictionary. More... | |
status_t | sid_dict_add_identity (uint32 id, ncx_identity_t *ident, boolean internal) |
Store an identity item in the SID item dict. More... | |
bool | sid_dict_remove_identity (uint32 id, ncx_identity_t *ident) |
Remove an identity object from the SID item dict. More... | |
status_t | sid_dict_find_identity (uint32 id, ncx_sid_t sid, ncx_identity_t **ident) |
Find an identity item in the SID item dictionary. More... | |
status_t | sid_dict_add_feature (uint32 id, ncx_feature_t *feat, boolean internal) |
Store a feature item in the SID item dict. More... | |
bool | sid_dict_remove_feature (uint32 id, ncx_feature_t *feat) |
Remove a feature identity object from the SID item dict. More... | |
status_t | sid_dict_find_feature (uint32 id, ncx_sid_t sid, ncx_feature_t **feat) |
Find a feature item in the SID item dictionary. More... | |
void | sid_dict_dump (uint32 id) |
Print the sorted dictionary contents. More... | |
void | sid_dict_xml_wr (ses_cb_t *scb, xml_msg_hdr_t *mhdr, obj_template_t *obj, boolean external_only, xmlns_id_t parent_nsid, ncx_sid_t start_sid, ncx_sid_t stop_sid, int32 indent) |
Print the sorted dictionary contents for the yumaworks-yang-cbor get-yang-sid-info RPC operation. More... | |
ncx_sid_t | sid_dict_highest (void) |
Get the highest SID number. More... | |
uint32 | sid_dict_count (void) |
Get the current count of SID numbers. More... | |
status_t | sid_dict_new (uint32 *id) |
Allocate a new SID tree for a session. More... | |
void | sid_dict_free (uint32 id) |
Free a SID tree previously allocated with sid_dict_new. More... | |
Schema Item Identifier Dictionary utilities.
The YANG SID number is used as AVL tree key
For server access only one SID tree is needed For client access a SID tree per session is needed for LSID Not assuming every server will use the correct global SID for every single schema item in the server