summaryrefslogtreecommitdiffstats
path: root/c-layman/src/config.h
blob: cb3c72604588c25103910bac90277c949b271961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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