Manages AVL tree of SMIv2 OID to YANG object mappings.  
More...
Manages AVL tree of SMIv2 OID to YANG object mappings. 
The smi:oid YANG extension is used to derive the mapping. 
◆ smioid_concat_object_oid()
      
        
          | obj_oid_t * smioid_concat_object_oid  | 
          ( | 
          oid_t *  | 
          name1,  | 
        
        
           | 
           | 
          uint32  | 
          oid_len1,  | 
        
        
           | 
           | 
          oid_t *  | 
          name2,  | 
        
        
           | 
           | 
          uint32  | 
          oid_len2  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Concatenate 2 OIDs into one OID. 
- Parameters
 - 
  
    | name1 | the first OID to write  | 
    | oid_len1 | length of the first OID  | 
    | name2 | the second OID to write  | 
    | oid_len2 | length of the second OID  | 
  
   
- Returns
 - malloced and initialized struct 
 
 
 
◆ smioid_dump_oid_string()
      
        
          | void smioid_dump_oid_string  | 
          ( | 
          const obj_oid_t *  | 
          oid_obj | ) | 
           | 
        
      
 
Logs the given oid object as a string. 
- Parameters
 - 
  
    | oid_obj | obj_oid_t structure which needs to be logged  | 
  
   
 
 
◆ smioid_dump_oid_string_obj()
Logs the given obj_template->oid object as a string. 
- Parameters
 - 
  
  
 
 
 
◆ smioid_dup_object_oid()
Duplicate OID. 
- Parameters
 - 
  
  
 
- Returns
 - malloced and initialized struct 
 
 
 
◆ smioid_extract_integers()
      
        
          | boolean smioid_extract_integers  | 
          ( | 
          const xmlChar *  | 
          oid,  | 
        
        
           | 
           | 
          obj_oid_t *  | 
          oid_obj  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Split SMI oid string into integers using '. 
'(dot) delimiter and store in the provided obj_oid_t object
- Parameters
 - 
  
    | oid | SMI string  | 
    | oid_obj | obj_oid_t structure which needs to be filled (in/out)  | 
  
   
- Returns
 - TRUE if extracted and stored the oid string; false otherwise 
 
 
 
◆ smioid_free_object_oid()
      
        
          | void smioid_free_object_oid  | 
          ( | 
          obj_oid_t *  | 
          oid | ) | 
           | 
        
      
 
Clean and free a malloced get2 control block. 
- Parameters
 - 
  
  
 
 
 
◆ smioid_new_object_oid()
Malloc and init a new obj_oid_t control block. 
- Returns
 - malloced and initialized struct 
 
 
 
◆ smioid_new_object_oid_ex()
      
        
          | obj_oid_t * smioid_new_object_oid_ex  | 
          ( | 
          oid_t *  | 
          name,  | 
        
        
           | 
           | 
          uint32  | 
          oid_len,  | 
        
        
           | 
           | 
          uint32  | 
          start_pos  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Malloc and init a new obj_oid_t control block. 
Initialize with given OID array and from a specified start position
- Parameters
 - 
  
    | name | OID to use  | 
    | oid_len | length of a new OID  | 
    | start_pos | start position to start a write  | 
  
   
- Returns
 - malloced and initialized struct 
 
 
 
◆ smioid_new_scalar_object_oid()
      
        
          | obj_oid_t * smioid_new_scalar_object_oid  | 
          ( | 
          void  | 
           | ) | 
           | 
        
      
 
Malloc a scalar index OID: '.0'. 
- Returns
 - malloced and initialized struct 
 
 
 
◆ smioid_tree_cleanup()
      
        
          | void smioid_tree_cleanup  | 
          ( | 
          void  | 
           | ) | 
           | 
        
      
 
Clean and free the oid tree. 
 
 
◆ smioid_tree_dump()
Traverses the SMI OID tree and prints the OID string and info on the obj_template_t instance. 
This is a debug function to dump the SMI OID tree. 
 
 
◆ smioid_tree_find()
Find a object template node from the specified SMI OID string. 
- Parameters
 - 
  
    | oid_obj | SMI OID string which is used to search the tree  | 
  
   
- Returns
 - object template structure if found, NULL otherwise 
 
 
 
◆ smioid_tree_find_oid()
Find the OID value of the corresponding OBJ template. 
- Parameters
 - 
  
    | obj | object template to use  | 
  
   
- Returns
 - obj_oid_t the OID or NULL if there is no matching OBJ 
 
 
 
◆ smioid_tree_get()
      
        
          | hb_tree * smioid_tree_get  | 
          ( | 
          void  | 
           | ) | 
           | 
        
      
 
Get the SMI OID tree. 
- Returns
 - AVL tree 
 
 
 
◆ smioid_tree_getnext_oid()
Returns the next or closest OID for the specified oid as per the lexicographical order. 
- Parameters
 - 
  
    | oid_obj | SMI OID string which is used to search the tree  | 
    | *found | TRUE if the next OID found  | 
  
   
- Returns
 - obj_oid_t the next OID as per lexicographical order 
 
 
 
◆ smioid_tree_getnext_oid_obj()
Returns the next or closest oid's object template for the specified oid as per the lexicographical order. 
- Parameters
 - 
  
     | oid_obj | SMI OID string which is used to search the tree  | 
    | [out] | ignored_index | address of return flag
- *ignored_index TRUE if the index was ignored 
 
 
 | 
  
   
- Returns
 - obj the next obj template as per lexicographical order 
 
 
 
◆ smioid_tree_init()
initialize the tree used for managing the SMI OID and the associated obj_template_t reference 
- Returns
 - status 
 
 
 
◆ smioid_tree_insert()
Add a list entry to the oid tree. 
- Parameters
 - 
  
    | obj | object to be inserted into the tree  | 
    | oid_obj | obj_oid_t structure which needs to be filled (in/out)  | 
  
   
 
 
◆ smioid_tree_remove()
Remove a entity from the specified tree. 
- Parameters
 - 
  
    | obj | object to be removed from the tree  | 
  
   
- Returns
 - TRUE if removed; FALSE if not