From: mk5004.lee Date: Tue, 3 Mar 2020 07:19:09 +0000 (+0900) Subject: Update description for ambient-viewer X-Git-Tag: submit/tizen/20200305.032544~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69f84bd0bad9c76596ee87f728fa624e6c3d14c6;p=platform%2Fcore%2Fappfw%2Fwidget-viewer.git Update description for ambient-viewer Change-Id: Ic6073ccb6971705b6d777775029cc26f14e33bf7 Signed-off-by: mk5004.lee --- diff --git a/ambient-viewer/include/ambient_viewer.h b/ambient-viewer/include/ambient_viewer.h index 3ade1e72..447ae5f8 100644 --- a/ambient-viewer/include/ambient_viewer.h +++ b/ambient-viewer/include/ambient_viewer.h @@ -14,88 +14,225 @@ * limitations under the License. */ -#ifndef __AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_H__ -#define __AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_H__ +#ifndef __TIZEN_WIDGET_VEWER_AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_H__ +#define __TIZEN_WIDGET_VEWER_AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_H__ #include #include -#include "ambient_viewer_surface.h" +#include #ifdef __cplusplus extern "C" { #endif /** - * @file ambient-viewer.h - * @brief + * @brief The ambient viewer handle. + * @remarks This handle only for internal applications. */ +typedef void *ambient_viewer_h; /** - * @addtogroup - * @{ + * @brief Enumeration for ambient event type. + * @remarks This enum only for internal applications. */ - -typedef void *ambient_viewer_h; - typedef enum { - AMBIENT_VIEWER_EVENT_AOD_PREPARE, - AMBIENT_VIEWER_EVENT_AOD_READY, - AMBIENT_VIEWER_EVENT_WATCH_CHANGED, + AMBIENT_VIEWER_EVENT_AOD_PREPARE, /** @@ -31,9 +31,8 @@ extern "C" { /** * @brief Enumeration for ambient_viewer error. - * @since_tizen 5.5 + * @remarks This enum only for internal applications. */ - typedef enum _ambient_viewer_error { AMBIENT_VIEWER_ERROR_NONE = TIZEN_ERROR_NONE, /**< Success */ AMBIENT_VIEWER_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */ @@ -46,4 +45,4 @@ typedef enum _ambient_viewer_error { #ifdef __cplusplus } #endif -#endif /* __AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_COMMON_H__ */ +#endif /* __TIZEN_WIDGET_VEWER_AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_COMMON_H__ */ diff --git a/ambient-viewer/include/ambient_viewer_surface.h b/ambient-viewer/include/ambient_viewer_surface.h index 140a7c7c..4267e09e 100644 --- a/ambient-viewer/include/ambient_viewer_surface.h +++ b/ambient-viewer/include/ambient_viewer_surface.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef __AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_SURFACE_H__ -#define __AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_SURFACE_H__ +#ifndef __TIZEN_WIDGET_VEWER_AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_SURFACE_H__ +#define __TIZEN_WIDGET_VEWER_AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_SURFACE_H__ #include @@ -23,38 +23,78 @@ extern "C" { #endif -/** - * @file ambient-viewer.h - * @brief - */ /** - * @addtogroup - * @{ + * @brief The surface handle. + * @remarks This handle only for internal applications. */ - typedef const void *ambient_viewer_surface_h; +/** + * @brief Gets the current image. + * @remarks This function only for internal applications. + * @remarks The @a image should not be released. + The @a image is available until handle is released. + * @param[in] handle The ambient viewer surface handle + * @param[out] image The Evas object + * @return #AMBIENT_VIEWER_ERROR_NONE On success, other value on failure + * @retval #AMBIENT_VIEWER_ERROR_NONE Success + * @retval #AMBIENT_VIEWER_ERROR_INVALID_PARAMETER Invalid parameter + */ int ambient_viewer_surface_get_cur_image(ambient_viewer_surface_h handle, Evas_Object **image); +/** + * @brief Gets whether the surface is a watch or not. + * @remarks This function only for internal applications. + * @param[in] handle The ambient viewer surface handle + * @param[out] is_watch Whether it is a watch or not + * @return #AMBIENT_VIEWER_ERROR_NONE On success, other value on failure + * @retval #AMBIENT_VIEWER_ERROR_NONE Success + * @retval #AMBIENT_VIEWER_ERROR_INVALID_PARAMETER Invalid parameter + */ int ambient_viewer_surface_is_watch(ambient_viewer_surface_h handle, bool *is_watch); +/** + * @brief Gets the App ID. + * @remarks This function only for internal applications. + * @remarks The @a app_id should be released using free(). + * @param[in] handle The ambient viewer surface handle + * @param[out] app_id A appid + * @return #AMBIENT_VIEWER_ERROR_NONE On success, other value on failure + * @retval #AMBIENT_VIEWER_ERROR_NONE Success + * @retval #AMBIENT_VIEWER_ERROR_INVALID_PARAMETER Invalid parameter + */ int ambient_viewer_surface_get_app_id(ambient_viewer_surface_h handle, char **app_id); +/** + * @brief Gets the Inastance ID. + * @remarks This function only for internal applications. + * @remarks The @a inst_id should be released using free(). + * @param[in] handle The ambient viewer surface handle + * @param[out] inst_id A instance id + * @return #AMBIENT_VIEWER_ERROR_NONE On success, other value on failure + * @retval #AMBIENT_VIEWER_ERROR_NONE Success + * @retval #AMBIENT_VIEWER_ERROR_INVALID_PARAMETER Invalid parameter + */ int ambient_viewer_surface_get_inst_id(ambient_viewer_surface_h handle, char **inst_id); -int ambient_viewer_surface_get_opr(ambient_viewer_surface_h handle, - float *opr); - /** - * @} + * @brief Gets the opr of the Evas Object. + * @remarks This function only for internal applications. + * @param[in] handle The ambient viewer surface handle + * @param[out] opr The OPR (On Pixel Ratio) + * @return #AMBIENT_VIEWER_ERROR_NONE On success, other value on failure + * @retval #AMBIENT_VIEWER_ERROR_NONE Success + * @retval #AMBIENT_VIEWER_ERROR_INVALID_PARAMETER Invalid parameter */ +int ambient_viewer_surface_get_opr(ambient_viewer_surface_h handle, + float *opr); #ifdef __cplusplus } #endif -#endif /*__AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_SURFACE_H__ */ +#endif /* __TIZEN_WIDGET_VEWER_AMBIENT_VIEWER_INCLUDE_AMBIENT_VIEWER_SURFACE_H__ */