ADC Home > Reference Library > Reference > Darwin > Miscellaneous User Space API Reference

 


agent_handler.h

Introduction



@addtogroup handler

@{



Typedefs


netsnmp_handler_registration


See Also:
struct netsnmp_handler_registration_s netsnmp_handler_registration
/** @struct netsnmp_handler_registration_s
Root registration info.
The variables handlerName, contextName, and rootoid need to be allocated
on the heap, when the registration structure is unregistered using
unregister_mib_context() the code attempts to free them.
    */
typedef struct netsnmp_handler_registration_s {  
    /** for mrTable listings, and other uses */
    char *handlerName; 
    /** NULL = default context */
    char *contextName;  
    /**
where are we registered at? 
        */
    oid *rootoid; 
    size_t rootoid_len;  
    /**
handler details 
        */
    netsnmp_mib_handler *handler; 
    int modes;  
    /**
more optional stuff 
        */
    int priority; 
    int range_subid; 
    oid range_ubound; 
    int timeout; 
    int global_cacheid;  
    /**
void ptr for registeree
        */
    void *my_reg_void;  
} netsnmp_handler_registration;  
Discussion

* Typedefs the netsnmp_handler_registration_s struct into netsnmp_handler_registration


netsnmp_mib_handler


See Also:
struct netsnmp_mib_handler_s netsnmp_mib_handler
/** @struct netsnmp_mib_handler_s
the mib handler structure to be registered
    */
typedef struct netsnmp_mib_handler_s { 
    char *handler_name; 
    /** for handler's internal use */
    void *myvoid; 
    /** for agent_handler's internal use */
    int flags;  
    /** if you add more members, you probably also want to update 
        */
    /** _clone_handler in snmp_agent.c. */
    int (*access_method) (
        struct netsnmp_mib_handler_s *, 
        struct netsnmp_handler_registration_s *, 
        struct netsnmp_agent_request_info_s *, 
        struct netsnmp_request_info_s *);  
    struct netsnmp_mib_handler_s *next; 
    struct netsnmp_mib_handler_s *prev; 
} netsnmp_mib_handler;  
Discussion

* Typedefs the netsnmp_mib_handler_s struct into netsnmp_mib_handler


struct netsnmp_handler_registration_s netsnmp_handler_registration


See Also:
netsnmp_handler_registration
/** @struct netsnmp_handler_registration_s
Root registration info.
The variables handlerName, contextName, and rootoid need to be allocated
on the heap, when the registration structure is unregistered using
unregister_mib_context() the code attempts to free them.
    */
typedef struct netsnmp_handler_registration_s {  
    /** for mrTable listings, and other uses */
    char *handlerName; 
    /** NULL = default context */
    char *contextName;  
    /**
where are we registered at? 
        */
    oid *rootoid; 
    size_t rootoid_len;  
    /**
handler details 
        */
    netsnmp_mib_handler *handler; 
    int modes;  
    /**
more optional stuff 
        */
    int priority; 
    int range_subid; 
    oid range_ubound; 
    int timeout; 
    int global_cacheid;  
    /**
void ptr for registeree
        */
    void *my_reg_void;  
} netsnmp_handler_registration;  
Discussion

* Typedefs the netsnmp_handler_registration_s struct into netsnmp_handler_registration


struct netsnmp_mib_handler_s netsnmp_mib_handler


See Also:
netsnmp_mib_handler
/** @struct netsnmp_mib_handler_s
the mib handler structure to be registered
    */
typedef struct netsnmp_mib_handler_s { 
    char *handler_name; 
    /** for handler's internal use */
    void *myvoid; 
    /** for agent_handler's internal use */
    int flags;  
    /** if you add more members, you probably also want to update 
        */
    /** _clone_handler in snmp_agent.c. */
    int (*access_method) (
        struct netsnmp_mib_handler_s *, 
        struct netsnmp_handler_registration_s *, 
        struct netsnmp_agent_request_info_s *, 
        struct netsnmp_request_info_s *);  
    struct netsnmp_mib_handler_s *next; 
    struct netsnmp_mib_handler_s *prev; 
} netsnmp_mib_handler;  
Discussion

* Typedefs the netsnmp_mib_handler_s struct into netsnmp_mib_handler


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.
Last Updated: 2006-06-20