summaryrefslogtreecommitdiff
path: root/cfgfile.h
blob: 38532ad6607129d2801d494403873c109a0fa593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * cfgfile.h:
 *
 * Copyright (c) 2003 DecisionSoft Ltd.
 *
 */

#ifndef __CFGFILE_H_ /* include guard */
#define __CFGFILE_H_

typedef struct {
    char *name;
    int value;
} config_enumeration_type;

int read_config();

char *config_get_string(const char *directive);
int config_get_bool(const char *directive);
int config_get_int(const char *directive, int *value);
int config_get_float(const char *directive, float *value);
int config_init();



#endif /* __CFGFILE_H_ */