---
name: "netsnmp_row_merge"
section: "3snmp"
platform: "linux"
package: "libsnmp-dev"
version: "5.4.3~dfsg-2.8+deb7u1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/netsnmp_row_merge"
---

# netsnmp\_row\_merge(3snmp)

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

## NAME

row\_merge -

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

### Defines

\#define **ROW\_MERGE\_WAITING**   0\
 \#define **ROW\_MERGE\_ACTIVE**   1\
 \#define **ROW\_MERGE\_DONE**   2\
 \#define **ROW\_MERGE\_HEAD**   3\

### Functions

**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.*  **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*  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\_mib\_handler\* netsnmp\_get\_row\_merge\_handler (int prefix\_len)

returns a row\_merge handler that can be injected into a given handler chain.

Definition at line 28 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 360 of file row\_merge.c.

### 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.

Definition at line 42 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 154 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 110 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 67 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 130 of file row\_merge.c.

## Author

Generated automatically by Doxygen for net-snmp from the source code.
