4
0

parse_ini.h 614 B

12345678910111213141516171819202122
  1. #ifndef NAGIOS_PARSE_INI_H_INCLUDED
  2. #define NAGIOS_PARSE_INI_H_INCLUDED
  3. /*
  4. * parse_ini.h: routines for loading nagios-plugin defaults from ini
  5. * configuration files.
  6. */
  7. /* np_arg_list is a linked list of arguments passed between the ini
  8. * parser and the argument parser to construct the final array */
  9. typedef struct np_arg_el {
  10. char *arg;
  11. struct np_arg_el *next;
  12. } np_arg_list;
  13. /* np_load_defaults: load the default configuration (if present) for
  14. * a plugin from the ini file
  15. */
  16. np_arg_list* np_get_defaults(const char *locator, const char *default_section);
  17. #endif /* NAGIOS_PARSE_INI_H_INCLUDED */