Temporary fix for hybrid pkg installation 84/92584/3 accepted/tizen/3.0/ivi/20161028.123004 accepted/tizen/3.0/mobile/20161028.122253 accepted/tizen/3.0/tv/20161028.122551 accepted/tizen/3.0/wearable/20161028.122807 accepted/tizen/common/20161017.170521 accepted/tizen/ivi/20161018.091321 accepted/tizen/mobile/20161018.091223 accepted/tizen/tv/20161018.091253 accepted/tizen/wearable/20161018.091308 submit/tizen/20161017.122727 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082323 submit/tizen_3.0_common/20161104.104000
authorSangyoon Jang <s89.jang@samsung.com>
Mon, 17 Oct 2016 11:50:46 +0000 (20:50 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 17 Oct 2016 12:16:56 +0000 (05:16 -0700)
Submit together:
 - https://review.tizen.org/gerrit/92582
 - https://review.tizen.org/gerrit/92583
 - https://review.tizen.org/gerrit/92585

Change-Id: Ic90added323afd9d1a2e00490800bb595a8f6ec1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
include/pkgmgrinfo_basic.h
src/pkgmgrinfo_basic.c

index c19940e..9df5ab3 100644 (file)
@@ -100,6 +100,12 @@ typedef struct splashscreen_x {
        char *color_depth;
 } splashscreen_x;
 
+/* FIXME: For temporary hotfix, will be removed */
+typedef struct support_size_x {
+       char *preview;
+       char *size;
+} support_size_x;
+
 typedef struct application_x {
        char *appid;    /*attr*/
        char *exec;     /*attr*/
@@ -158,6 +164,7 @@ typedef struct application_x {
        GList *background_category; /*element*/
        GList *appcontrol; /*element*/
        GList *splashscreens; /*element*/
+       GList *support_sizes; /* FIXME */
 } application_x;
 
 typedef struct package_x {
index b0d8657..060f264 100644 (file)
@@ -221,6 +221,19 @@ static void __ps_free_splashscreen(gpointer data)
        free((void *)splashscreen);
 }
 
+/* FIXME */
+static void __ps_free_support_size(gpointer data)
+{
+       support_size_x *support_size = (support_size_x *)data;
+       if (support_size == NULL)
+               return;
+       if (support_size->preview)
+               free((void *)support_size->preview);
+       if (support_size->size)
+               free((void *)support_size->size);
+       free((void *)support_size);
+}
+
 static void __ps_free_application(gpointer data)
 {
        application_x *application = (application_x *)data;
@@ -342,6 +355,8 @@ static void __ps_free_application(gpointer data)
        g_list_free_full(application->background_category, free);
        /*Free SplashScreen*/
        g_list_free_full(application->splashscreens, __ps_free_splashscreen);
+       /* FIXME */
+       g_list_free_full(application->support_sizes, __ps_free_support_size);
 
        free((void *)application);
 }