From b26a2dc608639e5a7a2be4b9e665cece2baef04f Mon Sep 17 00:00:00 2001 From: jongmyeongko Date: Tue, 10 Nov 2015 13:36:11 +0900 Subject: [PATCH] merge tizen 2.3/2.4 to xsd and related structure type for parsing manifest Change-Id: I28fd3cbdfa625081364528684ef26dea25a74a62 Signed-off-by: jongmyeongko --- include/pkgmgrinfo_basic.h | 153 ++++++++++++++++++++++++--------------------- parser/manifest.xsd.in | 107 ++++++++++++++++++++----------- 2 files changed, 152 insertions(+), 108 deletions(-) diff --git a/include/pkgmgrinfo_basic.h b/include/pkgmgrinfo_basic.h index a588126..f34b5f9 100644 --- a/include/pkgmgrinfo_basic.h +++ b/include/pkgmgrinfo_basic.h @@ -92,81 +92,90 @@ typedef struct datacontrol_x { } datacontrol_x; typedef struct application_x { - const char *appid; - const char *component; - const char *exec; - const char *nodisplay; - const char *type; - const char *onboot; - const char *multiple; - const char *autorestart; - const char *taskmanage; - const char *enabled; - const char *categories; - const char *extraid; - const char *hwacceleration; - const char *screenreader; - const char *mainapp; - const char *recentimage; - const char *launchcondition; - const char *indicatordisplay; - const char *portraitimg; - const char *landscapeimg; - const char *guestmode_visibility; - const char *permission_type; - const char *preload; - const char *submode; - const char *submode_mainid; - const char *launch_mode; - const char *ui_gadget; - const char *support_disable; - const char *component_type; - const char *package; - GList *label; - GList *icon; - GList *image; - GList *appcontrol; - GList *category; - GList *metadata; - GList *permission; - GList *launchconditions; - GList *notification; - GList *datashare; - GList *datacontrol; + const char *appid; /*attr*/ + const char *exec; /*attr*/ + const char *nodisplay; /*attr, default: "false"*/ + const char *multiple; /*attr, default: "false"*/ + const char *taskmanage; /*attr, default: "true"*/ + const char *enabled; /*attr, default: "true"*/ + const char *type; /*attr*/ + const char *categories; /*attr*/ + const char *extraid; /*attr*/ + const char *hwacceleration; /*attr, default: "default"*/ + const char *screenreader; /*attr, default: "use-system-setting"*/ + const char *mainapp; /*attr, default: "false"*/ + const char *package; /*set from package_x*/ + const char *recentimage; /*attr, default: "false"*/ + const char *launchcondition; /*attr, default: "false"*/ + const char *indicatordisplay; /*attr, default: "true"*/ + const char *portraitimg; /*attr*/ + const char *landscapeimg; /*attr*/ + const char *effectimage_type; /*attr, default: "image"*/ + const char *guestmode_visibility; /*attr, default: "true"*/ + const char *component; /*no xml part*/ + const char *permission_type; /*attr, default: "normal"*/ + const char *component_type; /*attr, default: "uiapp"*/ + const char *preload; /*no xml part*/ + const char *submode; /*attr, default: "false"*/ + const char *submode_mainid; /*attr, default: "false"*/ + const char *process_pool; /*attr, default: "false"*/ + const char *autorestart; /*attr, default: "false"*/ + const char *onboot; /*attr, default: "false"*/ + const char *multi_instance; /*attr, default: "false"*/ + const char *multi_instance_mainid; /*attr*/ + const char *support_disable; /*set from package_x*/ + const char *ui_gadget; /*attr, default: "false"*/ + const char *launch_mode; /*attr, default: "single"*/ + const char *ambient_support; /*attr, default: "false"*/ + GList *label; /*element*/ + GList *icon; /*element*/ + GList *image; /*element*/ + GList *category; /*element*/ + GList *metadata; /*element*/ + GList *permission; /*element*/ + GList *launchconditions; /*element*/ + GList *notification; /*element*/ + GList *datashare; /*element*/ + GList *datacontrol; /*element*/ + GList *background_category; /*element*/ + GList *appcontrol; /*element*/ } application_x; typedef struct package_x { - const char *for_all_users; /**< Flag that indicates if the package is available for everyone or for current user only*/ - const char *package; /**< package name*/ - const char *version; /**< package version*/ - const char *installlocation; /**< package install location*/ - const char *ns; /** + + - - - - - - - - - + + + + + + - - - + + + - + - - - + @@ -80,6 +77,9 @@ + + + @@ -114,14 +114,26 @@ - - - - + + + + + + + + + + + + + + + + @@ -134,6 +146,7 @@ + @@ -164,7 +177,7 @@ - + @@ -178,32 +191,24 @@ - + - - - + + + - - - - - - - - @@ -212,7 +217,7 @@ - + @@ -221,7 +226,23 @@ - + + + + + + + + + + + + + + + + + @@ -273,6 +294,7 @@ + @@ -355,7 +377,20 @@ - + + + + + + + + + + + + + + -- 2.7.4