net-snmp 5.7
scalar_group.h
00001 /*
00002  * scalar.h 
00003  */
00004 #ifndef NETSNMP_SCALAR_GROUP_H
00005 #define NETSNMP_SCALAR_GROUP_H
00006 
00007 #ifdef __cplusplus
00008 extern "C" {
00009 #endif
00010 
00011 /*
00012  * The scalar group helper is designed to implement a group of
00013  * scalar objects all in one go, making use of the scalar and
00014  * instance helpers.
00015  *
00016  * GETNEXTs are auto-converted to a GET.  Non-valid GETs are dropped.
00017  * The client-provided handler just needs to check the OID name to
00018  * see which object is being requested, but can otherwise assume that
00019  * things are fine.
00020  */
00021 
00022 typedef struct netsnmp_scalar_group_s {
00023     oid lbound;         /* XXX - or do we need a more flexible arrangement? */
00024     oid ubound;
00025 } netsnmp_scalar_group;
00026 
00027 int netsnmp_register_scalar_group(netsnmp_handler_registration *reginfo,
00028                                   oid first, oid last);
00029 netsnmp_mib_handler *netsnmp_get_scalar_group_handler(oid first, oid last);
00030 Netsnmp_Node_Handler netsnmp_scalar_group_helper_handler;
00031 
00032 #ifdef __cplusplus
00033 }
00034 #endif
00035 
00036 #endif