diff options
Diffstat (limited to 'c-layman/src/config.h')
-rw-r--r-- | c-layman/src/config.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/c-layman/src/config.h b/c-layman/src/config.h new file mode 100644 index 0000000..cb3c726 --- /dev/null +++ b/c-layman/src/config.h @@ -0,0 +1,20 @@ +#ifndef CONFIG_H +#define CONFIG_H + +#include "stringlist.h" +#include "message.h" + +typedef struct BareConfig BareConfig; + +BareConfig* bareConfigCreate(Message* m, FILE* outFd, FILE* inFd, FILE* errFd); + +/* + * FIXME : could the Python lib work the same way ? + */ + +const char* bareConfigGetDefaultValue(BareConfig* cfg, const char*); +const char* bareConfigGetOptionValue(BareConfig* cfg, const char* opt); +int bareConfigSetOptionValue(BareConfig* cfg, const char*, const char*); +void bareConfigFree(BareConfig*); + +#endif |