oms_data_def_entry_insert()
Abstract
Creates a database entry (entry_name) under the category (category_name).
Syntax
oms_data_def_entry_insert (category_name, entry_name, entry_ds_ptr)
| Argument | Type | Description |
|---|---|---|
category_name |
char * |
Category name of interest. If the category does not exist, it is created. This means that the caller code does not need to create the category. |
entry_name |
char * |
Name of entry to be inserted. If the entry already exists, the data is overwritten. |
entry_ds_ptr |
void * |
Generic data structure pointer stored under the entry name. |
Return Type
void
No return value.
Details
See oms_data_def_entry_access().
Example
Excerpt from function block of ip_attribute_definer process model
/* Load the compression ratio distribution for future use. */
comp_type_ptr->comp_ratio_dist_ptr = op_dist_load (pdf_name, pdf_arg0, pdf_arg1);
/* Get the per bit delays for compression & decompression processes*/
op_ima_obj_attr_get (comp_type_objid, "Compression Delay",
&(comp_type_ptr->compression_delay));
op_ima_obj_attr_get (comp_type_objid, "Decompression Delay",
&(comp_type_ptr->decompression_delay));
/* Finally register the data into network-wide database by */
/* passing the pointer to the data structure. That makes this */
/* information accessible for all other objects in the network, */
/* whichever needs it; for instance all IP routers. */
oms_data_def_entry_insert (category_name, comp_type_ptr->name, comp_type_ptr);