| net-snmp 5.7 | 
Maintaining MIB nodes and subtrees. More...
| Functions | |
| void | netsnmp_subtree_free (netsnmp_subtree *a) | 
| Frees single subtree item. | |
| netsnmp_subtree * | netsnmp_subtree_deepcopy (netsnmp_subtree *a) | 
| Creates deep copy of a subtree item. | |
| netsnmp_feature_child_of (netsnmp_subtree_compare, netsnmp_unused) | |
| Compares OIDs of given subtrees. | |
| void | netsnmp_subtree_join (netsnmp_subtree *root) | 
| Joins the given subtree with the current tree. | |
| netsnmp_subtree * | netsnmp_subtree_split (netsnmp_subtree *current, oid name[], int name_len) | 
| Split the subtree into two at the specified point. | |
| int | netsnmp_subtree_load (netsnmp_subtree *new_sub, const char *context_name) | 
| Loads the subtree under given context name. | |
| netsnmp_subtree * | netsnmp_subtree_find_prev (const oid *name, size_t len, netsnmp_subtree *subtree, const char *context_name) | 
| netsnmp_subtree * | netsnmp_subtree_find_next (const oid *name, size_t len, netsnmp_subtree *subtree, const char *context_name) | 
| netsnmp_subtree * | netsnmp_subtree_find (const oid *name, size_t len, netsnmp_subtree *subtree, const char *context_name) | 
| void | clear_subtree (netsnmp_subtree *sub) | 
| Free the given subtree and all its children. | |
Maintaining MIB nodes and subtrees.
| void clear_subtree | ( | netsnmp_subtree * | sub | ) | 
Free the given subtree and all its children.
| sub | Subtree branch to be cleared and freed. After the call, this pointer is invalid and should be set to NULL. | 
Definition at line 951 of file agent_registry.c.
| netsnmp_feature_child_of | ( | netsnmp_subtree_compare | , | 
| netsnmp_unused | |||
| ) | 
Compares OIDs of given subtrees.
| ap,bp | Pointers to the subtrees to be compared. | 
Definition at line 566 of file agent_registry.c.
| netsnmp_subtree* netsnmp_subtree_deepcopy | ( | netsnmp_subtree * | a | ) | 
Creates deep copy of a subtree item.
Duplicates all properties stored in the structure, including Handle Registration structure stored inside the item.
| a | The subtree item to copy. | 
Definition at line 489 of file agent_registry.c.
| void netsnmp_subtree_free | ( | netsnmp_subtree * | a | ) | 
Frees single subtree item.
Deallocated memory for given netsnmp_subtree item, including Handle Registration structure stored inside this item. After calling this function, the pointer is invalid and should be set to NULL.
| a | The subtree item to dispose. | 
Definition at line 460 of file agent_registry.c.
| void netsnmp_subtree_join | ( | netsnmp_subtree * | root | ) | 
Joins the given subtree with the current tree.
Trees are joined and the one supplied as parameter is freed.
| root | The subtree to be merged with current subtree. Do not use the pointer after joining - it may be invalid. | 
Definition at line 582 of file agent_registry.c.
| int netsnmp_subtree_load | ( | netsnmp_subtree * | new_sub, | 
| const char * | context_name | ||
| ) | 
Loads the subtree under given context name.
| root | The subtree to be loaded into current subtree. | 
| context_name | Text name of the context we're searching for. | 
Definition at line 752 of file agent_registry.c.
| netsnmp_subtree* netsnmp_subtree_split | ( | netsnmp_subtree * | current, | 
| oid | name[], | ||
| int | name_len | ||
| ) | 
Split the subtree into two at the specified point.
Subtrees of the given OID and separated and formed into the returned subtree.
| current | The element at which splitting is started. | 
| name | The OID we'd like to split. | 
| name_len | Length of the OID. | 
Definition at line 640 of file agent_registry.c.
 1.7.4
 1.7.4