diff options
author | dol-sen <brian.dolbec@gmail.com> | 2011-10-05 13:50:03 -0700 |
---|---|---|
committer | dol-sen <brian.dolbec@gmail.com> | 2011-10-05 13:50:03 -0700 |
commit | 78eefa4b5a74690a537fc725b4de2224548a0826 (patch) | |
tree | 68787c852f3303a27f8c12f98e9f9f15bf8ab283 /c-layman/src/config.h | |
parent | 2b3e8c634f819f1cbd3a700f6299c5a99b989ea5 (diff) | |
download | layman-78eefa4b5a74690a537fc725b4de2224548a0826.tar.gz layman-78eefa4b5a74690a537fc725b4de2224548a0826.tar.bz2 layman-78eefa4b5a74690a537fc725b4de2224548a0826.zip |
move everything to prep for a merge into layman.
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 |