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.

24 lines
538 B

#ifndef _CONFIG_H_
#define _CONFIG_H_
#include "list.h"
struct conf_section {
struct list_head list;
char name[32];
struct list_head tupel;
struct conf_tupel {
struct list_head list;
char *option;
char *parameter;
int config_parse(char *config);
struct conf_section * config_get_section(char *name);
char * config_get_parameter(struct conf_section *section, char *option);
char * config_get_string(char *section, char *option, char *def);
int config_get_int(char *section, char *option, int def);
#endif /* _CONFIG_H_ */