read_only.h 540 B

123456789101112131415161718192021222324252627282930
  1. #ifndef READ_ONLY_H
  2. #define READ_ONLY_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. * read_only.h
  8. */
  9. /*
  10. * The helper merely intercepts SET requests and handles them early on
  11. * making everything read-only (no SETs are actually permitted).
  12. * Useful as a helper to handlers that are implementing MIBs with no
  13. * SET support.
  14. */
  15. netsnmp_mib_handler *netsnmp_get_read_only_handler(void);
  16. void netsnmp_init_read_only_helper(void);
  17. Netsnmp_Node_Handler netsnmp_read_only_helper;
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif