row_merge: Calls sub handlers with request for one row at a time.Section: C Library Functions (3)Updated: 7 Aug 2004 |
row_merge: Calls sub handlers with request for one row at a time.Section: C Library Functions (3)Updated: 7 Aug 2004 |
#define ROW_MERGE_WAITING 0
#define ROW_MERGE_ACTIVE 1
#define ROW_MERGE_DONE 2
netsnmp_mib_handler * netsnmp_get_row_merge_handler (int prefix_len)
returns a row_merge handler that can be injected into a given handler chain.
int netsnmp_register_row_merge (netsnmp_handler_registration *reginfo)
functionally the same as calling netsnmp_register_handler() but also injects a row_merge handler at the same time for you.
int netsnmp_row_merge_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests)
Implements the row_merge handler.
void netsnmp_init_row_merge (void)
initializes the row_merge helper which then registers a row_merge handler as a run-time injectable handler for configuration file use.
This helper splits a whole bunch of requests into chunks based on the row index that they refer to, and passes all requests for a given row to the lower handlers. This is useful for handlers that don't want to process multiple rows at the same time, but are happy to iterate through the request list for a single row.
returns a row_merge handler that can be injected into a given handler chain. Definition at line 31 of file row_merge.c.
References netsnmp_mib_handler_s::myvoid, netsnmp_create_handler(), and netsnmp_mib_handler.
Referenced by netsnmp_init_row_merge(), and netsnmp_register_row_merge().
initializes the row_merge helper which then registers a row_merge handler as a run-time injectable handler for configuration file use. Definition at line 188 of file row_merge.c.
References netsnmp_get_row_merge_handler(), and netsnmp_register_handler_by_name().
functionally the same as calling netsnmp_register_handler() but also injects a row_merge handler at the same time for you. Definition at line 45 of file row_merge.c.
References netsnmp_get_row_merge_handler(), netsnmp_handler_registration, netsnmp_inject_handler(), netsnmp_register_handler(), and netsnmp_handler_registration_s::rootoid_len.
Implements the row_merge handler. Definition at line 58 of file row_merge.c.
References netsnmp_mib_handler_s::myvoid, variable_list::name, variable_list::name_length, netsnmp_call_next_handler(), netsnmp_handler_registration, netsnmp_mib_handler, netsnmp_request_info_s::next, netsnmp_request_info_s::requestvb, netsnmp_handler_registration_s::rootoid, netsnmp_handler_registration_s::rootoid_len, and snmp_oid_compare().