This function registers a generic callback function.
126
.PP
127
The major and minor values are used to set the new_callback function into a global static multi-dimensional array of type struct \fBsnmp_gen_callback\fP. The function makes sure to append this callback function at the end of the link list, snmp_gen_callback->next.
113
This function registers a generic callback function. The major and minor values are used to set the new_callback function into a global static multi-dimensional array of type struct \fBsnmp_gen_callback\fP. The function makes sure to append this callback function at the end of the link list, snmp_gen_callback->next.
128
114
.PP
129
115
\fBParameters:\fP
130
116
.RS 4
180
166
181
167
.PP
182
168
Definition at line 230 of file callback.c.
183
.PP
184
References netsnmp_register_callback().
185
.PP
186
Referenced by init_snmp_alarm(), netsnmp_init_handler_conf(), and netsnmp_register_save_list().
187
169
.SS "int snmp_unregister_callback (int major, int minor, SNMPCallback * target, void * arg, int matchargs)"
188
170
.PP
189
This function unregisters a specified callback function given a major and minor type.
190
.PP
191
Note: no bound checking on major and minor.
171
This function unregisters a specified callback function given a major and minor type. Note: no bound checking on major and minor.
192
172
.PP
193
173
\fBParameters:\fP
194
174
.RS 4
198
178
.br
199
179
\fItarget\fP is the callback function that will be unregistered.
200
180
.br
201
\fIarg\fP is a void pointer used for comparison against the registered callback's sc_client_arg variable.
181
\fIarg\fP is a void pointer used for comparison against the registered callback's sc_client_arg \fBvariable\fP.
202
182
.br
203
\fImatchargs\fP is an integer used to bypass the comparison of arg and the callback's sc_client_arg variable only when matchargs is set to 0.
183
\fImatchargs\fP is an integer used to bypass the comparison of arg and the callback's sc_client_arg \fBvariable\fP only when matchargs is set to 0.