smarty template cache syncing daemon (PoC)
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.

configfile.h 538B

123456789101112131415161718192021222324
  1. #ifndef _CONFIG_H_
  2. #define _CONFIG_H_
  3. #include "list.h"
  4. struct conf_section {
  5. struct list_head list;
  6. char name[32];
  7. struct list_head tupel;
  8. };
  9. struct conf_tupel {
  10. struct list_head list;
  11. char *option;
  12. char *parameter;
  13. };
  14. int config_parse(char *config);
  15. struct conf_section * config_get_section(char *name);
  16. char * config_get_parameter(struct conf_section *section, char *option);
  17. char * config_get_string(char *section, char *option, char *def);
  18. int config_get_int(char *section, char *option, int def);
  19. #endif /* _CONFIG_H_ */