add watchapp for pkginfo 22/63322/2 accepted/tizen/common/20160324.084239 accepted/tizen/common/20160325.134926 accepted/tizen/ivi/20160324.131650 accepted/tizen/mobile/20160324.132924 accepted/tizen/tv/20160324.132745 accepted/tizen/wearable/20160324.132709 submit/tizen/20160323.065638 submit/tizen/20160323.235918
authorjongmyeongko <jongmyeong.ko@samsung.com>
Wed, 23 Mar 2016 07:35:19 +0000 (16:35 +0900)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Wed, 23 Mar 2016 07:36:21 +0000 (00:36 -0700)
Change-Id: Ic93ea2d96f8477d205bf1b83669b202ff79c0cbb
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/pkg_info.c

index 9b8420955f4fd7b94feda20d3574056068e74732..b8ec7962ed29cd5264960bc2695b6ea42a3d3e70 100644 (file)
@@ -1410,9 +1410,11 @@ int app_func(const pkgmgrinfo_appinfo_h handle, void *user_data)
        if (apptype)
                printf("Apptype: %s\n", apptype);
 
-       if (component == PMINFO_UI_APP || component == PMINFO_WIDGET_APP) {
-               printf("component: %s\n", component == PMINFO_UI_APP ? "uiapp" :
-                               "widgetapp");
+       if (component == PMINFO_UI_APP || component == PMINFO_WIDGET_APP ||
+               component == PMINFO_WATCH_APP) {
+               printf("component: %s\n", component == PMINFO_UI_APP ?
+                       "uiapp" : component == PMINFO_WIDGET_APP ?
+                       "widgetapp" : "watchapp");
                ret = pkgmgrinfo_appinfo_is_multiple(handle, &multiple);
                if (ret < 0)
                        printf("Failed to get multiple\n");
@@ -1839,15 +1841,15 @@ static int __get_app_info(char *appid)
        if (apptype)
                printf("Apptype: %s\n", apptype);
 
-       if (component == PMINFO_UI_APP || component == PMINFO_WIDGET_APP) {
-               printf("component: %s\n", component == PMINFO_UI_APP ? "uiapp" :
-                               "widgetapp");
-
+       if (component == PMINFO_UI_APP || component == PMINFO_WIDGET_APP ||
+               component == PMINFO_WATCH_APP) {
+               printf("component: %s\n", component == PMINFO_UI_APP ?
+                       "uiapp" : component == PMINFO_WIDGET_APP ?
+                       "widgetapp": "watchapp");
                if (icon)
                        printf("Icon: %s\n", icon);
                if (label)
                        printf("Label: %s\n", label);
-
                printf("Nodisplay: %d\n", nodisplay);
                printf("Multiple: %d\n", multiple);
                printf("Taskmanage: %d\n", taskmanage);