169 files changed, 64432 insertions, 116 deletions
diff --git a/tvapi/libtv/tvconfig/tvconfig.h b/tvapi/libtv/tvconfig/tvconfig.h new file mode 100644 index 0000000..f2cf316 --- a/dev/null +++ b/tvapi/libtv/tvconfig/tvconfig.h @@ -0,0 +1,20 @@ +#ifndef __TVCONFIG_API_H__ +#define __TVCONFIG_API_H__ + +#define CC_CFG_KEY_STR_MAX_LEN (128) +#define CC_CFG_VALUE_STR_MAX_LEN (512) + + +extern int tv_config_load(const char *file_name); +extern int tv_config_unload(); +extern int tv_config_save(); + +//[TV] section + +extern int config_set_str(const char *section, const char *key, const char *value); +extern const char *config_get_str(const char *section, const char *key, const char *def_value); +extern int config_get_int(const char *section, const char *key, const int def_value); +extern int config_set_int(const char *section, const char *key, const int value); + + +#endif //__TVCONFIG_API_H__ |