rrd based system stats
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
945 B

  1. #ifndef _CONFIG_H_
  2. #define _CONFIG_H_
  3. int config_parse(const char *config);
  4. void config_free(void);
  5. const char * config_get_string(const char *section_str, const char *option, const char *def);
  6. int config_get_int(const char *section, const char *option, int *value, int def);
  7. int config_get_strings(const char *section_str, const char *option,
  8. int (*callback)(const char *value, void *privdata),
  9. void *privdata);
  10. struct strtoken {
  11. const char *input;
  12. const char *delim;
  13. int maxfields;
  14. int count;
  15. char *field[0];
  16. };
  17. struct strtoken * strtokenize(const char *input, const char *delim, int maxfields);
  18. struct strtoken * config_get_strtoken(const char *section_str, const char *option, const char *delim, int maxfields);
  19. int config_get_strtokens(const char *section_str, const char *option, const char *delim, int maxfields,
  20. int (*callback)(struct strtoken *tokens, void *privdata),
  21. void *privdata);
  22. #endif /* _CONFIG_H_ */