blob: 5415dbd2f90db3e82e3ff475233ee1741dca3e1a
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 | #define CFG_SECTION_TV "TV" |
9 | #define CFG_SECTION_ATV "ATV" |
10 | #define CFG_SECTION_SRC_INPUT "SourceInputMap" |
11 | #define CFG_SECTION_SETTING "SETTING" |
12 | #define CFG_SECTION_FBCUART "FBCUART" |
13 | |
14 | #define CFG_BLUE_SCREEN_COLOR "tvin.bluescreen.color" |
15 | |
16 | extern int tv_config_load(const char *file_name); |
17 | extern int tv_config_unload(); |
18 | extern int tv_config_save(); |
19 | |
20 | //[TV] section |
21 | |
22 | extern int config_set_str(const char *section, const char *key, const char *value); |
23 | extern const char *config_get_str(const char *section, const char *key, const char *def_value); |
24 | extern int config_get_int(const char *section, const char *key, const int def_value); |
25 | extern int config_set_int(const char *section, const char *key, const int value); |
26 | |
27 | |
28 | #endif //__TVCONFIG_API_H__ |
29 |