From: Boram Park Date: Tue, 3 Apr 2018 07:46:34 +0000 (+0900) Subject: config: not export tdm_config function to backend X-Git-Tag: submit/tizen/20180411.042300~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04ab8db6936dfb9a5d1f91a7ab3ccf78f13d0af0;p=platform%2Fcore%2Fuifw%2Flibtdm.git config: not export tdm_config function to backend Change-Id: I2c8d162912c0971e6be5443c18535df81055eca7 --- diff --git a/include/tdm_backend.h b/include/tdm_backend.h index 970cbc40..0416a906 100644 --- a/include/tdm_backend.h +++ b/include/tdm_backend.h @@ -1443,28 +1443,6 @@ tdm_event_loop_source_timer_update(tdm_event_loop_source *source, unsigned int m void tdm_event_loop_source_remove(tdm_event_loop_source *source); -/** - * @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 Trigger a 'need to validate' event. diff --git a/src/tdm_config.h b/src/tdm_config.h index b6a34ba5..73eeb9ff 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); diff --git a/src/tdm_private.h b/src/tdm_private.h index 9b1951dc..40f9e793 100644 --- a/src/tdm_private.h +++ b/src/tdm_private.h @@ -237,6 +237,9 @@ tdm_display_enable_ttrace(tdm_private_display *private_display, const char *ttra tdm_error tdm_display_enable_fps(tdm_private_display *private_display, int enable); +void +tdm_config_deinit(void); + void tdm_monitor_server_command(tdm_display *dpy, const char *options, char *reply, int *len);