1 .TH "old_api: Calls mib module code written in the old style of code." 3 "10 Jan 2003" "net-snmp" \" -*- nroff -*-
5 old_api: Calls mib module code written in the old style of code. \- This is a backwards compatilibity module that allows code written in the old API to be run under the new handler based architecture.
11 .RI "netsnmp_mib_handler * \fBget_old_api_handler\fP (void)"
13 .RI "\fIreturns a old_api handler that should be the final calling handler.\fP"
15 .RI "int \fBnetsnmp_register_old_api\fP (const char *moduleName, struct variable *var, size_t varsize, size_t numvars, oid *mibloc, size_t mibloclen, int priority, int range_subid, oid range_ubound, netsnmp_session *ss, const char *context, int timeout, int flags)"
17 .RI "\fIRegisters an old API set into the mib tree.\fP"
19 .RI "int \fBnetsnmp_register_mib_table_row\fP (const char *moduleName, struct variable *var, size_t varsize, size_t numvars, oid *mibloc, size_t mibloclen, int priority, int var_subid, netsnmp_session *ss, const char *context, int timeout, int flags)"
21 .RI "\fIregisters a row within a mib table.\fP"
23 .RI "int \fBnetsnmp_old_api_helper\fP (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests)"
25 .RI "\fIimplements the old_api handler.\fP"
27 .SH "DETAILED DESCRIPTION"
29 This is a backwards compatilibity module that allows code written in the old API to be run under the new handler based architecture.
31 Use it by calling \fBnetsnmp_register_old_api\fP().
32 .SH "FUNCTION DOCUMENTATION"
34 .SS "netsnmp_mib_handler* get_old_api_handler (void)"
36 returns a old_api handler that should be the final calling handler.
38 Don't use this function. Use the \fBnetsnmp_register_old_api\fP() function instead.
40 Definition at line 40 of file old_api.c.
41 .SS "int netsnmp_old_api_helper (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests)"
43 implements the old_api handler.
45 Definition at line 233 of file old_api.c.
46 .SS "int netsnmp_register_mib_table_row (const char * moduleName, struct variable * var, size_t varsize, size_t numvars, oid * mibloc, size_t mibloclen, int priority, int var_subid, netsnmp_session * ss, const char * context, int timeout, int flags)"
48 registers a row within a mib table.
50 Definition at line 119 of file old_api.c.
51 .SS "int netsnmp_register_old_api (const char * moduleName, struct variable * var, size_t varsize, size_t numvars, oid * mibloc, size_t mibloclen, int priority, int range_subid, oid range_ubound, netsnmp_session * ss, const char * context, int timeout, int flags)"
53 Registers an old API set into the mib tree.
55 Functionally this mimics the old register_mib_context() function (and in fact the new register_mib_context() function merely calls this new old_api one).
57 Definition at line 51 of file old_api.c.