and added files
[bcm963xx.git] / userapps / opensource / net-snmp / include / net-snmp / agent / instance.h
1 /*
2  * testhandler.h 
3  */
4 #ifndef NETSNMP_INSTANCE_H
5 #define NETSNMP_INSTANCE_H
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 /*
12  * The instance helper is designed to simplify the task of adding simple
13  * * instances to the mib tree.
14  */
15
16 /*
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.
21  */
22
23 int             netsnmp_register_instance(netsnmp_handler_registration
24                                           *reginfo);
25 int            
26 netsnmp_register_read_only_instance(netsnmp_handler_registration *reginfo);
27
28 #define INSTANCE_HANDLER_NAME "instance"
29
30 netsnmp_mib_handler *netsnmp_get_instance_handler(void);
31
32 int             netsnmp_register_read_only_ulong_instance(const char *name,
33                                                           oid * reg_oid,
34                                                           size_t
35                                                           reg_oid_len,
36                                                           u_long * it,
37                                                           Netsnmp_Node_Handler
38                                                           * subhandler);
39 int             netsnmp_register_ulong_instance(const char *name,
40                                                 oid * reg_oid,
41                                                 size_t reg_oid_len,
42                                                 u_long * it,
43                                                 Netsnmp_Node_Handler *
44                                                 subhandler);
45 int             netsnmp_register_read_only_counter32_instance(const char
46                                                               *name,
47                                                               oid *
48                                                               reg_oid,
49                                                               size_t
50                                                               reg_oid_len,
51                                                               u_long * it,
52                                                               Netsnmp_Node_Handler
53                                                               *
54                                                               subhandler);
55 int             netsnmp_register_read_only_long_instance(const char *name,
56                                                          oid * reg_oid,
57                                                          size_t
58                                                          reg_oid_len,
59                                                          long *it,
60                                                          Netsnmp_Node_Handler
61                                                          * subhandler);
62 int             netsnmp_register_long_instance(const char *name,
63                                                oid * reg_oid,
64                                                size_t reg_oid_len,
65                                                long *it,
66                                                Netsnmp_Node_Handler *
67                                                subhandler);
68
69 int             netsnmp_register_read_only_int_instance(const char *name,
70                                               oid * reg_oid,
71                                               size_t reg_oid_len, int *it,
72                                               Netsnmp_Node_Handler *
73                                               subhandler);
74
75 int             netsnmp_register_int_instance(const char *name,
76                                               oid * reg_oid,
77                                               size_t reg_oid_len, int *it,
78                                               Netsnmp_Node_Handler *
79                                               subhandler);
80
81
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;
87
88 #ifdef __cplusplus
89 };
90 #endif
91
92 #endif /** NETSNMP_INSTANCE_H */