oms_data_def_entry_access()
Abstract
Retrieves data from the attribute database.
Syntax
oms_data_def_entry_access (category_name, entry_name)
| Argument | Type | Description |
|---|---|---|
category_name |
char * |
Category name of interest. |
entry_name |
char * |
Entry name of interest. |
Return Type
void *
The pointer stored under the specified category and entry names.
If either the category or the entry under it does not exist, the function returns OPC_NIL.
Details
Each category name is unique within the network-wide database, and each entry name is unique within the category. This two-level classification scheme simplifies the classification and shortens storage and retrieval time.
In many cases, the value of category_name is the high-level attribute name (for example IP Compression Info) and the value of entry_name is the value of the Name given to the value combination.
Example
Excerpt from exit execs of wait state, ip_rte_v4 process model.
/* Retrieve the information about the compression scheme*/
/* used for this interface from the network-wide attribute*/
/* database. Use the comp_info_str (name) as the reference.*/
iface_info_ptr->comp_info = oms_data_def_entry_access ("IP Compression Information", comp_info_str);