net-snmp 5.7
Data Fields
netsnmp_mib_handler_s Struct Reference

the mib handler structure to be registered More...

#include <agent_handler.h>

Data Fields

char * handler_name
void * myvoid
 for handler's internal use
int flags
 for agent_handler's internal use
int(* access_method )(struct netsnmp_mib_handler_s *, struct netsnmp_handler_registration_s *, struct netsnmp_agent_request_info_s *, struct netsnmp_request_info_s *)
 if you add more members, you probably also want to update
void *(* data_clone )(void *myvoid)
 data clone hook for myvoid deep copy the myvoid member - default is to copy the pointer This method is only called if myvoid != NULL myvoid is the current myvoid pointer.
void(* data_free )(void *myvoid)
 data free hook for myvoid delete the myvoid member - default is to do nothing This method is only called if myvoid != NULL
struct netsnmp_mib_handler_snext
struct netsnmp_mib_handler_sprev

Detailed Description

the mib handler structure to be registered

Examples:

delayed_instance.c.

Definition at line 48 of file agent_handler.h.


Field Documentation

if you add more members, you probably also want to update

_clone_handler in agent_handler.c.

Definition at line 58 of file agent_handler.h.

data clone hook for myvoid deep copy the myvoid member - default is to copy the pointer This method is only called if myvoid != NULL myvoid is the current myvoid pointer.

returns NULL on failure

Definition at line 70 of file agent_handler.h.

data free hook for myvoid delete the myvoid member - default is to do nothing This method is only called if myvoid != NULL

data free hook for myvoid

Definition at line 75 of file agent_handler.h.

for agent_handler's internal use

Definition at line 53 of file agent_handler.h.

for handler's internal use

Definition at line 51 of file agent_handler.h.


The documentation for this struct was generated from the following file: