X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=userapps%2Fopensource%2Fnet-snmp%2Finclude%2Fnet-snmp%2Fagent%2Fscalar.h;fp=userapps%2Fopensource%2Fnet-snmp%2Finclude%2Fnet-snmp%2Fagent%2Fscalar.h;h=7452e4159ec7e64699dad9b04e30fbad7d269564;hb=9dffd9f7659a1b28265e0dc9497343eb3d108d02;hp=0000000000000000000000000000000000000000;hpb=e48c2529a5a7e7dbf1797bb6d1bf964bc03e78a7;p=bcm963xx.git diff --git a/userapps/opensource/net-snmp/include/net-snmp/agent/scalar.h b/userapps/opensource/net-snmp/include/net-snmp/agent/scalar.h new file mode 100644 index 00000000..7452e415 --- /dev/null +++ b/userapps/opensource/net-snmp/include/net-snmp/agent/scalar.h @@ -0,0 +1,36 @@ +/* + * scalar.h + */ +#ifndef NETSNMP_SCALAR_H +#define NETSNMP_SCALAR_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * The scalar helper is designed to simplify the task of adding simple + * scalar objects to the mib tree. + */ + +/* + * GETNEXTs are auto-converted to a GET. + * * non-valid GETs are dropped. + * * The client can assume that if you're called for a GET, it shouldn't + * * have to check the oid at all. Just answer. + */ + +int netsnmp_register_scalar(netsnmp_handler_registration *reginfo); +int netsnmp_register_read_only_scalar(netsnmp_handler_registration *reginfo); + +#define SCALAR_HANDLER_NAME "scalar" + +netsnmp_mib_handler *netsnmp_get_scalar_handler(void); + +Netsnmp_Node_Handler netsnmp_scalar_helper_handler; + +#ifdef __cplusplus +}; +#endif + +#endif /** NETSNMP_SCALAR_H */