scalar_group.h 983 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * scalar.h
  3. */
  4. #ifndef NETSNMP_SCALAR_GROUP_H
  5. #define NETSNMP_SCALAR_GROUP_H
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. /*
  10. * The scalar group helper is designed to implement a group of
  11. * scalar objects all in one go, making use of the scalar and
  12. * instance helpers.
  13. *
  14. * GETNEXTs are auto-converted to a GET. Non-valid GETs are dropped.
  15. * The client-provided handler just needs to check the OID name to
  16. * see which object is being requested, but can otherwise assume that
  17. * things are fine.
  18. */
  19. typedef struct netsnmp_scalar_group_s {
  20. oid lbound; /* XXX - or do we need a more flexible arrangement? */
  21. oid ubound;
  22. } netsnmp_scalar_group;
  23. int netsnmp_register_scalar_group(netsnmp_handler_registration *reginfo,
  24. oid first, oid last);
  25. netsnmp_mib_handler *netsnmp_get_scalar_group_handler(oid first, oid last);
  26. Netsnmp_Node_Handler netsnmp_scalar_group_helper_handler;
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif /** NETSNMP_SCALAR_GROUP_H */