multiplexer.h 975 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef NETSNMP_MULTIPLEXER_H
  2. #define NETSNMP_MULTIPLEXER_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. * The multiplexer helper
  8. */
  9. /** @name multiplexer
  10. * @{ */
  11. /** @struct netsnmp_mib_handler_methods
  12. * Defines the subhandlers to be called by the multiplexer helper
  13. */
  14. typedef struct netsnmp_mib_handler_methods_s {
  15. /** called when a GET request is received */
  16. netsnmp_mib_handler *get_handler;
  17. /** called when a GETNEXT request is received */
  18. netsnmp_mib_handler *getnext_handler;
  19. /** called when a GETBULK request is received */
  20. netsnmp_mib_handler *getbulk_handler;
  21. /** called when a SET request is received */
  22. netsnmp_mib_handler *set_handler;
  23. } netsnmp_mib_handler_methods;
  24. /** @} */
  25. netsnmp_mib_handler
  26. *netsnmp_get_multiplexer_handler(netsnmp_mib_handler_methods *);
  27. Netsnmp_Node_Handler netsnmp_multiplexer_helper_handler;
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif /* NETSNMP_MULTIPLEXER_H */