old_api
[Net-SNMP Agent handler and extensibility API]

Calls mib module code written in the old style of code. [詳細]

関数

netsnmp_mib_handlerget_old_api_handler (void)
 returns a old_api handler that should be the final calling handler.
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)
 Registers an old API set into the mib tree.
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)
 registers a row within a mib table
int netsnmp_old_api_helper (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests)
 implements the old_api handler

説明

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. Use it by calling netsnmp_register_old_api().


関数

netsnmp_mib_handler* get_old_api_handler ( void   ) 

returns a old_api handler that should be the final calling handler.

Don't use this function. Use the netsnmp_register_old_api() function instead.

old_api.c37 行で定義されています。

参照先 netsnmp_create_handler()netsnmp_old_api_helper().

参照元 netsnmp_register_mib_table_row()netsnmp_register_old_api().

int netsnmp_old_api_helper ( netsnmp_mib_handler handler,
netsnmp_handler_registration reginfo,
netsnmp_agent_request_info reqinfo,
netsnmp_request_info requests 
)

implements the old_api handler

old_api.c226 行で定義されています。

参照先 variable::aclvariable::findVarnetsnmp_handler_registration_s::handlerNamevariable::magicMIB_CLIENTS_ARE_EVILnetsnmp_agent_request_info_s::modenetsnmp_mib_handler_s::myvoidvariable_list::namevariable::namevariable_list::name_lengthvariable::namelennetsnmp_oid_equals()netsnmp_request_info_s::nextNULLnetsnmp_request_info_s::requestvbnetsnmp_handler_registration_s::rootoidnetsnmp_handler_registration_s::rootoid_lensnmp_set_var_typed_value()variable::type.

参照元 get_old_api_handler().

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 
)

registers a row within a mib table

old_api.c107 行で定義されています。

参照先 netsnmp_handler_registration_s::contextNameregister_parameters::contextNameregister_parameters::flagsget_old_api_handler()netsnmp_handler_registration_s::handlerHANDLER_CAN_RWRITEnetsnmp_handler_registration_s::handlerNamenetsnmp_handler_registration_s::modesnetsnmp_mib_handler_s::myvoidregister_parameters::nameregister_parameters::namelennetsnmp_handler_registration_free()netsnmp_register_handler_nocallback()NULLnetsnmp_handler_registration_s::priorityregister_parameters::prioritynetsnmp_handler_registration_s::range_subidregister_parameters::range_subidnetsnmp_handler_registration_s::range_uboundregister_parameters::range_uboundnetsnmp_handler_registration_s::rootoidnetsnmp_handler_registration_s::rootoid_lensnmp_call_callbacks()SNMP_MALLOC_TYPEDEFnetsnmp_handler_registration_s::timeoutregister_parameters::timeout.

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 
)

Registers an old API set into the mib tree.

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).

netsnmp_handler_registration_free(reginfo); already freed

old_api.c48 行で定義されています。

参照先 netsnmp_handler_registration_s::contextNameget_old_api_handler()netsnmp_handler_registration_s::handlerHANDLER_CAN_RWRITEnetsnmp_handler_registration_s::handlerNamememdup()netsnmp_handler_registration_s::modesnetsnmp_mib_handler_s::myvoidnetsnmp_register_handler()NULLnetsnmp_handler_registration_s::prioritynetsnmp_handler_registration_s::range_subidnetsnmp_handler_registration_s::range_uboundnetsnmp_handler_registration_s::rootoidnetsnmp_handler_registration_s::rootoid_lenSNMP_FREESNMP_MALLOC_TYPEDEFnetsnmp_handler_registration_s::timeout.

参照元 register_mib_context().


net-snmpに対してSat Sep 5 13:14:29 2009に生成されました。  doxygen 1.4.7