net-snmp 5.7
scalar.h
00001 /*
00002  * scalar.h 
00003  */
00004 #ifndef NETSNMP_SCALAR_H
00005 #define NETSNMP_SCALAR_H
00006 
00007 #ifdef __cplusplus
00008 extern "C" {
00009 #endif
00010 
00011 /*
00012  * The scalar helper is designed to simplify the task of adding simple
00013  * scalar objects to the mib tree.
00014  */
00015 
00016 /*
00017  * GETNEXTs are auto-converted to a GET.
00018  * * non-valid GETs are dropped.
00019  * * The client can assume that if you're called for a GET, it shouldn't
00020  * * have to check the oid at all.  Just answer.
00021  */
00022 
00023 int netsnmp_register_scalar(netsnmp_handler_registration *reginfo);
00024 int netsnmp_register_read_only_scalar(netsnmp_handler_registration *reginfo);
00025 
00026 #define SCALAR_HANDLER_NAME "scalar"
00027 
00028 netsnmp_mib_handler *netsnmp_get_scalar_handler(void);
00029 
00030 Netsnmp_Node_Handler netsnmp_scalar_helper_handler;
00031 
00032 #ifdef __cplusplus
00033 }
00034 #endif
00035 
00036 #endif