---
name: "netsnmp_mode_end_call"
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_mode_end_call"
---

# netsnmp\_mode\_end\_call(3snmp)

At the end of a series of requests, call another handler hook.

## NAME

mode\_end\_call -

At the end of a series of requests, call another handler hook.

### Functions

**netsnmp\_mib\_handler** \* **netsnmp\_get\_mode\_end\_call\_handler** (**netsnmp\_mode\_handler\_list** \*endlist)\
 *returns a mode\_end\_call handler that can be injected into a given handler chain.*  **netsnmp\_mode\_handler\_list** \* **netsnmp\_mode\_end\_call\_add\_mode\_callback** (**netsnmp\_mode\_handler\_list** \*endlist, int mode, **netsnmp\_mib\_handler** \*callbackh)\
 *adds a mode specific callback to the callback list.*  int **netsnmp\_mode\_end\_call\_helper** (**netsnmp\_mib\_handler** \*handler, **netsnmp\_handler\_registration** \*reginfo, **netsnmp\_agent\_request\_info** \*reqinfo, **netsnmp\_request\_info** \*requests)\

## Detailed Description

At the end of a series of requests, call another handler hook.

Handlers that want to loop through a series of requests and then receive a callback at the end of a particular MODE can use this helper to make this possible. For most modules, this is not needed as the handler itself could perform a for() loop around the request list and then perform its actions afterwards. However, if something like the serialize helper is in use this isn't possible because not all the requests for a given handler are being passed downward in a single group. Thus, this helper \*must\* be added above other helpers like the serialize helper to be useful.

Multiple mode specific handlers can be registered and will be called in the order they were regestered in. Callbacks regesterd with a mode of NETSNMP\_MODE\_END\_ALL\_MODES will be called for all modes.

## Function Documentation

### netsnmp\_mib\_handler\* netsnmp\_get\_mode\_end\_call\_handler (netsnmp\_mode\_handler\_list \* endlist)

returns a mode\_end\_call handler that can be injected into a given handler chain. **Parameters:**

*endlist* The callback list for the handler to make use of.

**Returns:**

An injectable Net-SNMP handler.

Definition at line 45 of file mode\_end\_call.c.

### netsnmp\_mode\_handler\_list\* netsnmp\_mode\_end\_call\_add\_mode\_callback (netsnmp\_mode\_handler\_list \* endlist, int mode, netsnmp\_mib\_handler \* callbackh)

adds a mode specific callback to the callback list. **Parameters:**

*endlist* the information structure for the mode\_end\_call helper. Can be NULL to create a new list. \
 *mode* the mode to be called upon. A mode of NETSNMP\_MODE\_END\_ALL\_MODES = all modes. \
 *callbackh* the netsnmp\_mib\_handler callback to call.

**Returns:**

the new registration information list upon success.

Definition at line 65 of file mode\_end\_call.c.

## Author

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