net-snmp 5.7
Defines | Functions
row_merge
utility_handlers

Calls sub handlers with request for one row at a time. More...

Defines

#define ROW_MERGE_WAITING   0
#define ROW_MERGE_ACTIVE   1
#define ROW_MERGE_DONE   2
#define ROW_MERGE_HEAD   3

Functions

 netsnmp_feature_child_of (register_row_merge, row_merge_all)
 functionally the same as calling netsnmp_register_handler() but also injects a row_merge handler at the same time for you.
netsnmp_row_merge_statusnetsnmp_row_merge_status_get (netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, int create_missing)
 retrieve row_merge_status
int netsnmp_row_merge_status_first (netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo)
 Determine if this is the first row.
int netsnmp_row_merge_status_last (netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo)
 Determine if this is the last row.
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.

Detailed Description

Calls sub handlers with request for one row at a time.

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.


Function Documentation

netsnmp_feature_child_of ( register_row_merge  ,
row_merge_all   
)

functionally the same as calling netsnmp_register_handler() but also injects a row_merge handler at the same time for you.

Definition at line 48 of file row_merge.c.

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.

Definition at line 370 of file row_merge.c.

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.

Definition at line 164 of file row_merge.c.

int netsnmp_row_merge_status_first ( netsnmp_handler_registration reginfo,
netsnmp_agent_request_info reqinfo 
)

Determine if this is the first row.

returns 1 if this is the first row for this pass of the handler.

Definition at line 120 of file row_merge.c.

netsnmp_row_merge_status* netsnmp_row_merge_status_get ( netsnmp_handler_registration reginfo,
netsnmp_agent_request_info reqinfo,
int  create_missing 
)

retrieve row_merge_status

Definition at line 77 of file row_merge.c.

int netsnmp_row_merge_status_last ( netsnmp_handler_registration reginfo,
netsnmp_agent_request_info reqinfo 
)

Determine if this is the last row.

returns 1 if this is the last row for this pass of the handler.

Definition at line 140 of file row_merge.c.