X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ftdm_config.h;h=a9ed0fd91a538d54baa71f227742bb13b2051991;hb=2f7c9f1b82be987bb25ff2266ee7038cc697df5a;hp=b6a34ba54ce0ab0384c79a1746bb9b8a8bb3f1ca;hpb=f2a5863445a2e5a34448bb02542a90d329ff4352;p=platform%2Fcore%2Fuifw%2Flibtdm.git diff --git a/src/tdm_config.h b/src/tdm_config.h index b6a34ba..a9ed0fd 100644 --- a/src/tdm_config.h +++ b/src/tdm_config.h @@ -49,11 +49,45 @@ extern "C" { * @brief The config header file for a frontend library */ -void -tdm_config_deinit(void); +/** + * @brief Get the ini value with given key + * @details + * @param[in] key The given key + * @param[in] default_value The default value + * @return the value of given key if success. Otherwise, default_value. + * @see #tdm_config_get_string + */ +int +tdm_config_get_int(const char *key, int default_value); +/** + * @brief Get the ini value with given key + * @details + * @param[in] key The given key + * @param[in] default_value The default value + * @return the value of given key if success. Otherwise, default_value. + * @see #tdm_config_get_int + */ +const char * +tdm_config_get_string(const char *key, const char *default_value); + +/** + * @brief Set the ini value with given key + * @details + * @param[in] key The given key + * @param[in] value The value + * @return TDM_ERROR_NONE if success. Otherwise, error value. + */ tdm_error tdm_config_set_int(const char *key, int value); + +/** + * @brief Set the ini value with given key + * @details + * @param[in] key The given key + * @param[in] value The value + * @return TDM_ERROR_NONE if success. Otherwise, error value. + */ tdm_error tdm_config_set_string(const char *key, const char *value); @@ -80,6 +114,12 @@ tdm_config_set_string(const char *key, const char *value); */ #define TDM_CONFIG_KEY_GENERAL_COMMIT_PER_VBLANK "general:commit_per_vblank" +/* enable the tdm virtual output module. [0(disable), 1(enable)] + * default: 0 + * ex) 1 + */ +#define TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT "general:virtual_output" + /*** debug keys **************************************************************/