snmp_get_statistic.h 836 B

123456789101112131415161718192021
  1. #ifndef SNMP_GET_STATISTIC_H
  2. #define SNMP_GET_STATISTIC_H
  3. /** Registers a scalar group with statistics from @ref snmp_get_statistic.
  4. * as reginfo.[start, start + end - begin].
  5. * @param reginfo registration to register the items under
  6. * @param start offset to the begin item
  7. * @param begin first snmp_get_statistic key to return
  8. * @param end last snmp_get_statistic key to return
  9. */
  10. int
  11. netsnmp_register_statistic_handler(netsnmp_handler_registration *reginfo,
  12. oid start, int begin, int end);
  13. #define NETSNMP_REGISTER_STATISTIC_HANDLER(reginfo, start, stat) \
  14. netsnmp_register_statistic_handler(reginfo, start, \
  15. STAT_ ## stat ## _STATS_START, \
  16. STAT_ ## stat ## _STATS_END)
  17. #endif