X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Ftdm_backend.h;h=970cbc40b2add4e799cab138e858b44aab41626d;hb=2adc0c96b4af5f88b3560e8ebd0b595a3f483578;hp=09b1377676d06d0ed7b06745529155cfaf040dc9;hpb=e93c19d94e9540af5e081beefca00a915c63b149;p=platform%2Fcore%2Fuifw%2Flibtdm.git diff --git a/include/tdm_backend.h b/include/tdm_backend.h index 09b1377..970cbc4 100644 --- a/include/tdm_backend.h +++ b/include/tdm_backend.h @@ -9,7 +9,7 @@ * Taeheon Kim , * YoungJun Cho , * SooChan Lim , - * Boram Park + * Boram Park * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the @@ -103,8 +103,7 @@ typedef struct _tdm_caps_output { unsigned int type_id; /**< The connection type id */ unsigned int mode_count; /**< The count of available modes */ - tdm_output_mode - *modes; /**< The @b newly-allocated array of modes. will be freed in frontend. */ + tdm_output_mode *modes; /**< The @b newly-allocated array of modes. will be freed in frontend. */ unsigned int prop_count; /**< The count of available properties */ tdm_prop *props; /**< The @b newly-allocated array of properties. will be freed in frontend. */ @@ -477,7 +476,6 @@ typedef struct _tdm_func_output { /** * @brief Get the mode of a output object - * @deprecated * @param[in] output A output object * @param[out] mode A output mode * @return #TDM_ERROR_NONE if success. Otherwise, error value. @@ -1446,6 +1444,29 @@ 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. * @param[in] output The output the event should be triggered for. * @note The global display lock has to be locked before the call to this function.