Statistics
| Branch: | Revision:

grapes / src / config.h @ 8996031d

History | View | Annotate | Download (699 Bytes)

1
#ifndef CONFIG_H
2
#define CONFIG_H
3
struct tag;
4

    
5
struct tag *config_parse(const char *cfg);
6
int config_value_int(const struct tag *cfg_values, const char *value, int *res);
7
int config_value_int_default(const struct tag *cfg_values, const char *value, int *res, int default_value);
8
int config_value_double(const struct tag *cfg_values, const char *value, double *res);
9
int config_value_double_default(const struct tag *cfg_values, const char *value, double *res, double default_value);
10
const char *config_value_str(const struct tag *cfg_values, const char *value);
11
const char *config_value_str_default(const struct tag *cfg_values, const char *value, const char *default_value);
12

    
13
#endif /* CONFIG_H */