4 #ifndef NETSNMP_INSTANCE_H
5 #define NETSNMP_INSTANCE_H
12 * The instance helper is designed to simplify the task of adding simple
13 * * instances to the mib tree.
17 * GETNEXTs are auto-converted to a GET.
18 * * non-valid GETs are dropped.
19 * * The client can assume that if you're called for a GET, it shouldn't
20 * * have to check the oid at all. Just answer.
23 int netsnmp_register_instance(netsnmp_handler_registration
26 netsnmp_register_read_only_instance(netsnmp_handler_registration *reginfo);
28 #define INSTANCE_HANDLER_NAME "instance"
30 netsnmp_mib_handler *netsnmp_get_instance_handler(void);
32 int netsnmp_register_read_only_ulong_instance(const char *name,
39 int netsnmp_register_ulong_instance(const char *name,
43 Netsnmp_Node_Handler *
45 int netsnmp_register_read_only_counter32_instance(const char
55 int netsnmp_register_read_only_long_instance(const char *name,
62 int netsnmp_register_long_instance(const char *name,
66 Netsnmp_Node_Handler *
69 int netsnmp_register_read_only_int_instance(const char *name,
71 size_t reg_oid_len, int *it,
72 Netsnmp_Node_Handler *
75 int netsnmp_register_int_instance(const char *name,
77 size_t reg_oid_len, int *it,
78 Netsnmp_Node_Handler *
82 Netsnmp_Node_Handler netsnmp_instance_helper_handler;
83 Netsnmp_Node_Handler netsnmp_instance_ulong_handler;
84 Netsnmp_Node_Handler netsnmp_instance_long_handler;
85 Netsnmp_Node_Handler netsnmp_instance_int_handler;
86 Netsnmp_Node_Handler netsnmp_instance_counter32_handler;
92 #endif /** NETSNMP_INSTANCE_H */