scalar.h 783 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * scalar.h
  3. */
  4. #ifndef NETSNMP_SCALAR_H
  5. #define NETSNMP_SCALAR_H
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. /*
  10. * The scalar helper is designed to simplify the task of adding simple
  11. * scalar objects to the mib tree.
  12. */
  13. /*
  14. * GETNEXTs are auto-converted to a GET.
  15. * * non-valid GETs are dropped.
  16. * * The client can assume that if you're called for a GET, it shouldn't
  17. * * have to check the oid at all. Just answer.
  18. */
  19. int netsnmp_register_scalar(netsnmp_handler_registration *reginfo);
  20. int netsnmp_register_read_only_scalar(netsnmp_handler_registration *reginfo);
  21. #define SCALAR_HANDLER_NAME "scalar"
  22. netsnmp_mib_handler *netsnmp_get_scalar_handler(void);
  23. Netsnmp_Node_Handler netsnmp_scalar_helper_handler;
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /** NETSNMP_SCALAR_H */