and added files
[bcm963xx.git] / userapps / opensource / net-snmp / include / net-snmp / agent / scalar.h
1 /*
2  * scalar.h 
3  */
4 #ifndef NETSNMP_SCALAR_H
5 #define NETSNMP_SCALAR_H
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 /*
12  * The scalar helper is designed to simplify the task of adding simple
13  * scalar objects 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_scalar(netsnmp_handler_registration *reginfo);
24 int netsnmp_register_read_only_scalar(netsnmp_handler_registration *reginfo);
25
26 #define SCALAR_HANDLER_NAME "scalar"
27
28 netsnmp_mib_handler *netsnmp_get_scalar_handler(void);
29
30 Netsnmp_Node_Handler netsnmp_scalar_helper_handler;
31
32 #ifdef __cplusplus
33 };
34 #endif
35
36 #endif /** NETSNMP_SCALAR_H */