diff options
Diffstat (limited to 'accel-dp/conf_file.h')
-rw-r--r-- | accel-dp/conf_file.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/accel-dp/conf_file.h b/accel-dp/conf_file.h new file mode 100644 index 0000000..7110303 --- /dev/null +++ b/accel-dp/conf_file.h @@ -0,0 +1,24 @@ +#ifndef __CONF_FILE_H +#define __CONF_FILE_H + +struct conf_opt { + struct conf_opt *next; + char *name; + char *val; + char *raw; + struct conf_opt *child; +}; + +struct conf_sect { + struct conf_sect *next; + char *name; + struct conf_opt *opt; +}; + +struct conf_sect *conf_get_sect(const char *name); +const char *conf_get_opt(const char *sect, const char *name); +const char *conf_get_subopt(const struct conf_opt *opt, const char *name); + +int conf_load(const char *fname); + +#endif |