net-snmp 5.7
|
Routines for maintaining a MIB table. More...
Functions | |
netsnmp_mib_handler * | netsnmp_generic_get_handler (void) |
Create a MIB handler structure. | |
netsnmp_generic_free_handler (netsnmp_mib_handler *handler) | |
Free a MIB handler structure, releasing any related resources. | |
int | netsnmp_generic_register (netsnmp_handler_registration *reginfo, void *table, netsnmp_table_registration_info *table_info) |
Register a MIB table with the SNMP agent. | |
int | netsnmp_generic_unregister (netsnmp_handler_registration *reginfo) |
Unregister a MIB table from the SNMP agent. | |
void | netsnmp_generic_extract_table (netsnmp_request_info *request) |
Extract the table relating to a requested varbind. | |
void | netsnmp_generic_extract_row (netsnmp_request_info *request) |
Extract the row relating to a requested varbind. | |
void | netsnmp_generic_insert_row (netsnmp_request_info *request, void *row) |
Associate a (new) row with the requested varbind. |
Routines for maintaining a MIB table.
void netsnmp_generic_extract_row | ( | netsnmp_request_info * | request | ) |
Extract the row relating to a requested varbind.
Definition at line 195 of file table_generic.c.
void netsnmp_generic_extract_table | ( | netsnmp_request_info * | request | ) |
Extract the table relating to a requested varbind.
Definition at line 189 of file table_generic.c.
netsnmp_generic_free_handler | ( | netsnmp_mib_handler * | handler | ) |
Free a MIB handler structure, releasing any related resources.
Possibly called automatically by 'netsnmp_unregister_handler' ?
Definition at line 165 of file table_generic.c.
netsnmp_mib_handler* netsnmp_generic_get_handler | ( | void | ) |
Create a MIB handler structure.
This will typically be invoked within the corresponding 'netsnmp_generic_register' routine (or the registration code of a sub-helper based on this helper).
Alternatively, it might be called from the initialisation code of a particular MIB table implementation.
Definition at line 158 of file table_generic.c.
void netsnmp_generic_insert_row | ( | netsnmp_request_info * | request, |
void * | row | ||
) |
Associate a (new) row with the requested varbind.
The row should also be associated with any other varbinds that refer to the same index values.
Definition at line 203 of file table_generic.c.
int netsnmp_generic_register | ( | netsnmp_handler_registration * | reginfo, |
void * | table, | ||
netsnmp_table_registration_info * | table_info | ||
) |
Register a MIB table with the SNMP agent.
Definition at line 172 of file table_generic.c.
int netsnmp_generic_unregister | ( | netsnmp_handler_registration * | reginfo | ) |
Unregister a MIB table from the SNMP agent.
This should also release the internal representation of the table. ?? Is a table-specific version of this needed, or would 'netsnmp_unregister_handler' + 'netsnmp_generic_free_handler' do?
Definition at line 183 of file table_generic.c.