hlswmaster/include/configfile.h
Olaf Rempel 0d0650008f Version 0.51
- added configfile parser, added configfile support to subsystems
- plugins: replaced con/destructor with dlsym() peeking
2006-02-02 16:41:56 +01:00

25 lines
535 B
C

#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 */