From d30e21f3bcda2dcdd6541422c4c1fc14a8140565 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Fri, 8 Mar 2019 15:54:48 +0900 Subject: [PATCH] Add a new component type for component-based application Requires: - https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-info/+/200568/ - https://review.tizen.org/gerrit/#/c/platform/core/appfw/tpk-manifest-handlers/+/200669/ - https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/200691/ - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/200773/ Change-Id: If676ed9aba934a08d92d4a1e7b16d8f6a61f32ef Signed-off-by: Hwankyu Jhun --- include/app_info.h | 13 +++++++------ src/app_info.c | 2 ++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/include/app_info.h b/include/app_info.h index a9f7740..5200dbb 100644 --- a/include/app_info.h +++ b/include/app_info.h @@ -79,8 +79,8 @@ extern "C" { /** * @brief Definition for string property for filtering based on app info: String property for * filtering with the application component type. - * Value related with this property should be one of "uiapp", "svcapp", "widgetapp" - * and "watchapp". + * Value related with this property should be one of "uiapp", "svcapp", "widgetapp", + * "watchapp" and "componentbasedapp" (Since 5.5). * @since_tizen 4.0 * @see app_info_app_component_type_e * @see app_info_get_app_component_type() @@ -97,10 +97,11 @@ extern "C" { * @see app_info_get_app_component_type() */ typedef enum { - APP_INFO_APP_COMPONENT_TYPE_UI_APP, /**< UI application */ - APP_INFO_APP_COMPONENT_TYPE_SERVICE_APP, /**< Service application */ - APP_INFO_APP_COMPONENT_TYPE_WIDGET_APP, /**< Widget application */ - APP_INFO_APP_COMPONENT_TYPE_WATCH_APP, /**< Watch application */ + APP_INFO_APP_COMPONENT_TYPE_UI_APP, /**< UI application */ + APP_INFO_APP_COMPONENT_TYPE_SERVICE_APP, /**< Service application */ + APP_INFO_APP_COMPONENT_TYPE_WIDGET_APP, /**< Widget application */ + APP_INFO_APP_COMPONENT_TYPE_WATCH_APP, /**< Watch application */ + APP_INFO_APP_COMPONENT_TYPE_COMPONENT_BASED_APP, /**< Component-based application (Since 5.5) */ } app_info_app_component_type_e; /** diff --git a/src/app_info.c b/src/app_info.c index e9e23c6..ada3d46 100644 --- a/src/app_info.c +++ b/src/app_info.c @@ -115,6 +115,8 @@ static int app_info_convert_app_component(pkgmgrinfo_app_component component, ap *converted_component = APP_INFO_APP_COMPONENT_TYPE_WIDGET_APP; else if (component == PMINFO_WATCH_APP) *converted_component = APP_INFO_APP_COMPONENT_TYPE_WATCH_APP; + else if (component == PMINFO_COMPONENT_BASED_APP) + *converted_component = APP_INFO_APP_COMPONENT_TYPE_COMPONENT_BASED_APP; else return -1; -- 2.7.4