scalar
[leaf_handlers]

Process scalars easily. [詳細]

関数

netsnmp_mib_handlernetsnmp_get_scalar_handler (void)
 Creates a scalar handler calling netsnmp_create_handler with a handler name defaulted to "scalar" and access method, netsnmp_scalar_helper_handler.
int netsnmp_register_scalar (netsnmp_handler_registration *reginfo)
 This function registers a scalar helper handler.
int netsnmp_register_read_only_scalar (netsnmp_handler_registration *reginfo)
 This function registers a read only scalar helper handler.
int netsnmp_scalar_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests)

説明

Process scalars easily.


関数

netsnmp_mib_handler* netsnmp_get_scalar_handler ( void   ) 

Creates a scalar handler calling netsnmp_create_handler with a handler name defaulted to "scalar" and access method, netsnmp_scalar_helper_handler.

戻り値:
Returns a pointer to a netsnmp_mib_handler struct which contains the handler's name and the access method
参照:
netsnmp_get_scalar_handler

netsnmp_register_scalar

scalar.c46 行で定義されています。

参照先 netsnmp_create_handler()netsnmp_scalar_helper_handler().

参照元 netsnmp_register_read_only_scalar()netsnmp_register_scalar()netsnmp_register_scalar_group().

int netsnmp_register_read_only_scalar ( netsnmp_handler_registration reginfo  ) 

This function registers a read only scalar helper handler.

This function is very similar to netsnmp_register_scalar the only addition is that the "read_only" handler is injected into the handler chain prior to injecting the serialize handler and registering reginfo.

引数:
reginfo a handler registration structure which could get created using netsnmp_create_handler_registration. Used to register a read only scalar helper handler.
戻り値:
MIB_REGISTERED_OK is returned if the registration was a success. Failures are MIB_REGISTRATION_FAILURE and MIB_DUPLICATE_REGISTRATION.
参照:
netsnmp_register_scalar

netsnmp_get_scalar_handler

scalar.c109 行で定義されています。

参照先 netsnmp_get_instance_handler()netsnmp_get_read_only_handler()netsnmp_get_scalar_handler()netsnmp_inject_handler()netsnmp_register_serialize()netsnmp_handler_registration_s::rootoidnetsnmp_handler_registration_s::rootoid_len.

int netsnmp_register_scalar ( netsnmp_handler_registration reginfo  ) 

This function registers a scalar helper handler.

The registered OID, reginfo->rootoid, space is extended for the instance subid using realloc() but the reginfo->rootoid_len length is not extended just yet. .This function subsequently injects the instance, scalar, and serialize helper handlers before actually registering reginfo.

Each handler is injected/pushed to the top of the handler chain list and will be processed last in first out, LIFO.

引数:
reginfo a handler registration structure which could get created using netsnmp_create_handler_registration. Used to register a scalar helper handler.
戻り値:
MIB_REGISTERED_OK is returned if the registration was a success. Failures are MIB_REGISTRATION_FAILURE and MIB_DUPLICATE_REGISTRATION.
参照:
netsnmp_register_read_only_scalar

netsnmp_get_scalar_handler

scalar.c74 行で定義されています。

参照先 netsnmp_get_instance_handler()netsnmp_get_scalar_handler()netsnmp_inject_handler()netsnmp_register_serialize()netsnmp_handler_registration_s::rootoidnetsnmp_handler_registration_s::rootoid_len.

参照元 netsnmp_register_watched_scalar()netsnmp_watched_timestamp_register().


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