X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fpkgmgrinfo_basic.h;h=974d9b808249acc6e7810b108e8e7609fbe88d9d;hb=aa88d97f98ae9093f07947ec8397e15e07e1dac3;hp=22a0c63579259ba5703ebd4431076e14adcd2368;hpb=d5ea23a24f0ae25f86bd913f3899639b6343e2c0;p=platform%2Fcore%2Fappfw%2Fpkgmgr-info.git diff --git a/include/pkgmgrinfo_basic.h b/include/pkgmgrinfo_basic.h index 22a0c63..974d9b8 100644 --- a/include/pkgmgrinfo_basic.h +++ b/include/pkgmgrinfo_basic.h @@ -3,33 +3,37 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + typedef struct metadata_x { - const char *key; - const char *value; + char *key; + char *value; } metadata_x; typedef struct permission_x { - const char *type; - const char *value; + char *type; + char *value; } permission_x; typedef struct icon_x { - const char *text; - const char *lang; - const char *section; - const char *size; - const char *resolution; - const char *dpi; + char *text; + char *lang; + char *section; + char *size; + char *resolution; + char *dpi; } icon_x; typedef struct image_x { - const char *text; - const char *lang; - const char *section; + char *text; + char *lang; + char *section; } image_x; typedef struct define_x { - const char *path; + char *path; GList *allowed; GList *request; } define_x; @@ -40,102 +44,145 @@ typedef struct datashare_x { } datashare_x; typedef struct description_x { - const char *name; - const char *text; - const char *lang; + char *name; + char *text; + char *lang; } description_x; typedef struct label_x { - const char *name; - const char *text; - const char *lang; + char *name; + char *text; + char *lang; } label_x; typedef struct author_x { - const char *email; - const char *href; - const char *text; - const char *lang; + char *email; + char *href; + char *text; + char *lang; } author_x; typedef struct license_x { - const char *text; - const char *lang; + char *text; + char *lang; } license_x; typedef struct condition_x { - const char *name; - const char *text; + char *name; + char *text; } condition_x; typedef struct notification_x { - const char *name; - const char *text; + char *name; + char *text; } notification_x; typedef struct appcontrol_x { - const char *operation; - const char *uri; - const char *mime; + char *operation; + char *uri; + char *mime; + char *visibility; + char *id; + GList *privileges; } appcontrol_x; typedef struct compatibility_x { - const char *name; - const char *text; + char *name; + char *text; } compatibility_x; +typedef struct plugin_x { + char *pkgid; + char *appid; + char *plugin_type; + char *plugin_name; +} plugin_x; + typedef struct datacontrol_x { - const char *providerid; - const char *access; - const char *type; + char *providerid; + char *access; + char *type; + char *trusted; + GList *privileges; } datacontrol_x; typedef struct splashscreen_x { - const char *src; - const char *type; - const char *dpi; - const char *orientation; - const char *indicatordisplay; + char *src; + char *type; + char *dpi; + char *orientation; + char *indicatordisplay; + char *operation; + char *color_depth; } splashscreen_x; +typedef struct privilege_x { + char *type; + char *value; +} privilege_x; + +typedef struct appdefined_privilege_x { + char *type; + char *value; + char *license; +} appdefined_privilege_x; + +typedef struct dependency_x { + char *depends_on; + char *type; + char *required_version; +} dependency_x; + typedef struct application_x { - 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 *installed_storage; - const char *autorestart; /*attr, default: "false"*/ - const char *onboot; /*attr, default: "false"*/ - 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"*/ - const char *alias_appid; /*attr*/ - const char *effective_appid; /*attr*/ - const char *package_type; /*set from package_x*/ + char *appid; /*attr*/ + char *exec; /*attr*/ + char *nodisplay; /*attr, default: "false"*/ + char *multiple; /*attr, default: "false"*/ + char *taskmanage; /*attr, default: "true"*/ + char *type; /*attr*/ + char *categories; /*attr*/ + char *extraid; /*attr*/ + char *hwacceleration; /*attr, default: "default"*/ + char *screenreader; /*attr, default: "use-system-setting"*/ + char *mainapp; /*attr, default: "false"*/ + char *package; /*set from package_x*/ + char *recentimage; /*attr, default: "false"*/ + char *launchcondition; /*attr, default: "false"*/ + char *indicatordisplay; /*attr, default: "true"*/ + char *portraitimg; /*attr*/ + char *landscapeimg; /*attr*/ + char *effectimage_type; /*attr, default: "image"*/ + char *guestmode_visibility; /*attr, default: "true"*/ + char *component; /*no xml part*/ + char *permission_type; /*attr, default: "normal"*/ + char *component_type; /*attr, default: "uiapp"*/ + char *preload; /*no xml part*/ + char *submode; /*attr, default: "false"*/ + char *submode_mainid; /*attr, default: "false"*/ + char *process_pool; /*attr, default: "false"*/ + char *installed_storage; + char *autorestart; /*attr, default: "false"*/ + char *onboot; /*attr, default: "false"*/ + char *support_disable; /*set from package_x*/ + char *ui_gadget; /*attr, default: "false"*/ + char *launch_mode; /*attr, default: "single"*/ + char *support_ambient; /*attr, default: "false"*/ + char *setup_appid; /*attr*/ + char *alias_appid; /*attr*/ + char *effective_appid; /*attr*/ + char *package_type; /*set from package_x*/ + char *tep_name; /*set from package_x*/ + char *zip_mount_file; /*set from package_x*/ + char *root_path; /*set from package_x*/ + char *api_version; /*set from package_x*/ + char *for_all_users; /**< Flag that indicates if the package is available for everyone or for current user only, no xml part*/ + char *is_disabled; /**< Flag that indicates if the application is disabled or not, no xml part*/ + char *splash_screen_display; /*attr, default: "true"*/ + char *external_path; /**< external storage path if exists, no xml part*/ + char *package_system; /*set from package_x*/ + char *removable; /*set from package_x*/ + char *package_installed_time; /*installed time after finishing of installation*/ + char *support_mode; /*attr*/ GList *label; /*element*/ GList *icon; /*element*/ GList *image; /*element*/ @@ -152,45 +199,62 @@ typedef struct application_x { } 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, no xml part*/ - const char *package; /**< package name, attr*/ - const char *version; /**< package version, attr*/ - const char *installlocation; /**< package install location, attr, default: "internal-only"*/ - const char *ns; /**