agent_read_config.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * agent_read_config.h: reads configuration files for extensible sections.
  3. *
  4. */
  5. #ifndef _AGENT_READ_CONFIG_H
  6. #define _AGENT_READ_CONFIG_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. void init_agent_read_config(const char *);
  11. void update_config(void);
  12. void snmpd_register_config_handler(const char *token,
  13. void (*parser) (const
  14. char *,
  15. char *),
  16. void (*releaser) (void),
  17. const char *help);
  18. void snmpd_register_const_config_handler(
  19. const char *,
  20. void (*parser) (const char *, const char *),
  21. void (*releaser) (void),
  22. const char *);
  23. void snmpd_unregister_config_handler(const char *);
  24. void snmpd_store_config(const char *);
  25. void netsnmp_set_agent_user_id(int uid);
  26. void netsnmp_set_agent_group_id(int gid);
  27. void netsnmp_parse_agent_user(const char *token, char *cptr);
  28. void netsnmp_parse_agent_group(const char *token, char *cptr);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif /* _AGENT_READ_CONFIG_H */