You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-08 03:42:19 +03:00
74 lines
3.1 KiB
Groff
74 lines
3.1 KiB
Groff
.TH "mode_end_call: at the end of a series of requests, call another handler hook." 3 "30 Jun 2005" "Version 5.2.1.rc3" "net-snmp" \" -*- nroff -*-
|
|
.ad l
|
|
.nh
|
|
.SH NAME
|
|
mode_end_call: 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.
|
|
|
|
.PP
|
|
.SS "Functions"
|
|
|
|
.in +1c
|
|
.ti -1c
|
|
.RI "\fBnetsnmp_mib_handler\fP * \fBnetsnmp_get_mode_end_call_handler\fP (netsnmp_mode_handler_list *endlist)"
|
|
.br
|
|
.RI "\fIreturns a mode_end_call handler that can be injected into a given handler chain. \fP"
|
|
.ti -1c
|
|
.RI "netsnmp_mode_handler_list * \fBnetsnmp_mode_end_call_add_mode_callback\fP (netsnmp_mode_handler_list *endlist, int mode, \fBnetsnmp_mib_handler\fP *callbackh)"
|
|
.br
|
|
.RI "\fIadds a mode specific callback to the callback list. \fP"
|
|
.ti -1c
|
|
.RI "int \fBnetsnmp_mode_end_call_helper\fP (\fBnetsnmp_mib_handler\fP *handler, \fBnetsnmp_handler_registration\fP *reginfo, \fBnetsnmp_agent_request_info\fP *reqinfo, \fBnetsnmp_request_info\fP *requests)"
|
|
.br
|
|
.in -1c
|
|
.SH "Detailed Description"
|
|
.PP
|
|
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.
|
|
.PP
|
|
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.
|
|
.PP
|
|
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.
|
|
.SH "Function Documentation"
|
|
.PP
|
|
.SS "\fBnetsnmp_mib_handler\fP* netsnmp_get_mode_end_call_handler (netsnmp_mode_handler_list * endlist)"
|
|
.PP
|
|
returns a mode_end_call handler that can be injected into a given handler chain.
|
|
.PP
|
|
\fBParameters:\fP
|
|
.RS 4
|
|
\fIendlist\fP The callback list for the handler to make use of.
|
|
.RE
|
|
.PP
|
|
\fBReturns:\fP
|
|
.RS 4
|
|
An injectable Net-SNMP handler.
|
|
.RE
|
|
.PP
|
|
|
|
.PP
|
|
Definition at line 48 of file mode_end_call.c.
|
|
.PP
|
|
References netsnmp_mib_handler_s::myvoid, and netsnmp_create_handler().
|
|
.SS "netsnmp_mode_handler_list* netsnmp_mode_end_call_add_mode_callback (netsnmp_mode_handler_list * endlist, int mode, \fBnetsnmp_mib_handler\fP * callbackh)"
|
|
.PP
|
|
adds a mode specific callback to the callback list.
|
|
.PP
|
|
\fBParameters:\fP
|
|
.RS 4
|
|
\fIendinfo\fP the information structure for the mode_end_call helper. Can be NULL to create a new list.
|
|
.br
|
|
\fImode\fP the mode to be called upon. A mode of NETSNMP_MODE_END_ALL_MODES = all modes.
|
|
.br
|
|
\fIcallbackh\fP the netsnmp_mib_handler callback to call.
|
|
.RE
|
|
.PP
|
|
\fBReturns:\fP
|
|
.RS 4
|
|
the new registration information list upon success.
|
|
.RE
|
|
.PP
|
|
|
|
.PP
|
|
Definition at line 68 of file mode_end_call.c.
|
|
.PP
|
|
References netsnmp_mib_handler_s::next.
|