yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
smioid_tree.h File Reference

AVL Tree storage of SMI OID data. More...

#include "dict.h"
Include dependency graph for smioid_tree.h:

Go to the source code of this file.

Data Structures

struct  smioid_node_t
 represents a pair of OID and associated object instance More...
 

Functions

boolean smioid_extract_integers (const xmlChar *oid, obj_oid_t *oid_obj)
 Split SMI oid string into integers using '. More...
 
obj_oid_tsmioid_new_object_oid (void)
 Malloc and init a new obj_oid_t control block. More...
 
void smioid_free_object_oid (obj_oid_t *oid)
 Clean and free a malloced get2 control block. More...
 
obj_oid_tsmioid_new_object_oid_ex (oid_t *name, uint32 oid_len, uint32 start_pos)
 Malloc and init a new obj_oid_t control block. More...
 
status_t smioid_tree_init (void)
 initialize the tree used for managing the SMI OID and the associated obj_template_t reference More...
 
void smioid_tree_cleanup (void)
 Clean and free the oid tree. More...
 
void smioid_tree_insert (obj_template_t *obj, obj_oid_t *oid_obj)
 Add a list entry to the oid tree. More...
 
boolean smioid_tree_remove (obj_template_t *obj)
 Remove a entity from the specified tree. More...
 
obj_template_tsmioid_tree_find (obj_oid_t *oid_obj)
 Find a object template node from the specified SMI OID string. More...
 
status_t smioid_tree_dump (void)
 Traverses the SMI OID tree and prints the OID string and info on the obj_template_t instance. More...
 
obj_oid_tsmioid_tree_getnext_oid (obj_oid_t *oid_obj, boolean *found)
 Returns the next or closest OID for the specified oid as per the lexicographical order. More...
 
obj_template_tsmioid_tree_getnext_oid_obj (obj_oid_t *oid_obj, boolean *ignored_index)
 Returns the next or closest oid's object template for the specified oid as per the lexicographical order. More...
 
obj_oid_tsmioid_tree_find_oid (obj_template_t *obj)
 Find the OID value of the corresponding OBJ template. More...
 
void smioid_dump_oid_string (const obj_oid_t *oid_obj)
 Logs the given oid object as a string. More...
 
void smioid_dump_oid_string_obj (obj_template_t *obj)
 Logs the given obj_template->oid object as a string. More...
 
obj_oid_tsmioid_concat_object_oid (oid_t *name1, uint32 oid_len1, oid_t *name2, uint32 oid_len2)
 Concatenate 2 OIDs into one OID. More...
 
obj_oid_tsmioid_dup_object_oid (obj_oid_t *copyfrom)
 Duplicate OID. More...
 
obj_oid_tsmioid_new_scalar_object_oid (void)
 Malloc a scalar index OID: '.0'. More...
 
hb_tree * smioid_tree_get (void)
 Get the SMI OID tree. More...
 

Detailed Description

AVL Tree storage of SMI OID data.