1 .TH "old_api: Calls mib module code written in the old style of code." 3 "5 Sep 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.
42 References netsnmp_create_handler(), and netsnmp_old_api_helper().
44 Referenced by netsnmp_register_mib_table_row(), and netsnmp_register_old_api().
45 .SS "int netsnmp_old_api_helper (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests)"
47 implements the old_api handler
49 Definition at line 224 of file old_api.c.
51 References netsnmp_oid_equals(), netsnmp_request_add_list_data(), and netsnmp_request_get_list_data().
53 Referenced by get_old_api_handler().
54 .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)"
56 registers a row within a mib table
58 Definition at line 110 of file old_api.c.
60 References get_old_api_handler(), netsnmp_handler_registration_free(), and netsnmp_register_handler_nocallback().
61 .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)"
63 Registers an old API set into the mib tree.
65 Functionally this mimics the old \fBregister_mib_context()\fP function (and in fact the new \fBregister_mib_context()\fP function merely calls this new old_api one).
67 Definition at line 51 of file old_api.c.
69 References get_old_api_handler(), netsnmp_handler_registration_free(), and netsnmp_register_handler().