summaryrefslogtreecommitdiff
path: root/src/client/configFile.h
blob: fc5689929bc2c9c8b472711e520546ccb5145414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef CONFIGFILE_H
#define CONFIGFILE_H

#include "main.h"
#include "textFile.h"

extern int isYesOrNO(char *s);
extern char *getYesOrNo(int n);

extern int getValue(char *line, char *env, char *val, int len);
extern char *setValue(char *line, char *env, char *val);

extern int getValueInConfigFile(textFile_t *textFile, char *env, char *val, int len);
extern int setValueInConfigFile(textFile_t *textFile, char *env, char *val);

extern void loadValueFromConfigFile(textFile_t *textFile, char *env, char *val,
				    int len, char *butVal);

#endif /* CONFIGFILE_H */