blob: f2cf31680e8afcb842d226bd4462cc0cdf7fde6d
1 | #ifndef __TVCONFIG_API_H__ |
2 | #define __TVCONFIG_API_H__ |
3 | |
4 | #define CC_CFG_KEY_STR_MAX_LEN (128) |
5 | #define CC_CFG_VALUE_STR_MAX_LEN (512) |
6 | |
7 | |
8 | extern int tv_config_load(const char *file_name); |
9 | extern int tv_config_unload(); |
10 | extern int tv_config_save(); |
11 | |
12 | //[TV] section |
13 | |
14 | extern int config_set_str(const char *section, const char *key, const char *value); |
15 | extern const char *config_get_str(const char *section, const char *key, const char *def_value); |
16 | extern int config_get_int(const char *section, const char *key, const int def_value); |
17 | extern int config_set_int(const char *section, const char *key, const int value); |
18 | |
19 | |
20 | #endif //__TVCONFIG_API_H__ |
21 |