#include <glib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct metadata_x {
char *key;
char *value;
char *lang;
} license_x;
-typedef struct condition_x {
- char *name;
- char *text;
-} condition_x;
-
typedef struct notification_x {
char *name;
char *text;
char *operation;
char *uri;
char *mime;
+ char *visibility;
+ char *id;
GList *privileges;
} appcontrol_x;
char *text;
} compatibility_x;
+typedef struct plugin_x {
+ char *pkgid;
+ char *appid;
+ char *plugin_type;
+ char *plugin_name;
+} plugin_x;
+
typedef struct datacontrol_x {
char *providerid;
char *access;
char *license;
} appdefined_privilege_x;
+typedef struct dependency_x {
+ char *pkgid;
+ char *depends_on;
+ char *type;
+ char *required_version;
+} dependency_x;
+
+typedef struct res_allowed_package_x {
+ char *allowed_package;
+ GList *required_privileges;
+} res_allowed_package_x;
+
+typedef struct res_control_x {
+ char *res_type;
+ char *min_res_version;
+ char *max_res_version;
+ char *auto_close;
+} res_control_x;
+
typedef struct application_x {
char *appid; /*attr*/
char *exec; /*attr*/
char *removable; /*set from package_x*/
char *package_installed_time; /*installed time after finishing of installation*/
char *support_mode; /*attr*/
+ char *locale; /*no xml part*/
+ char *light_user_switch_mode; /**< light_user_switch_mode flag, attr, default: "dafault"*/
GList *label; /*element*/
GList *icon; /*element*/
GList *image; /*element*/
GList *background_category; /*element*/
GList *appcontrol; /*element*/
GList *splashscreens; /*element*/
+ GList *res_control; /*element*/
+ GList *privileges; /*element*/
} application_x;
typedef struct package_x {
char *zip_mount_file; /*no xml part*/
char *backend_installer; /**< package backend installer, attr*/
char *external_path; /**< external storage path if exists, no xml part*/
- char *pkg_certs_dir; /**< pkg certificate directory, attr*/
char *use_system_certs; /**< use system certificates, attr*/
+ char *locale; /*no xml part*/
+ char *res_type; /**< res type, attr*/
+ char *res_version; /**< res version, attr*/
+ char *is_disabled; /**< Flag that indicates if the package is disabled or not, no xml part*/
+ char *light_user_switch_mode; /**< light_user_switch_mode flag, attr, default: "dafault"*/
GList *icon; /**< package icon, element*/
GList *label; /**< package label, element*/
GList *author; /**< package author, element*/
GList *application; /**< package's application, element*/
GList *compatibility; /**< package compatibility, element*/
GList *deviceprofile; /**< package device profile, element*/
+ GList *dependencies; /**< package dependencies, element*/
+ GList *plugin; /**< plugin execution list, no xml part*/
+ GList *res_allowed_packages; /**< res allowed packages, element*/
} package_x;
typedef struct updateinfo_x {
typedef struct package_x manifest_x;
void pkgmgrinfo_basic_free_application(application_x *application);
+void pkgmgrinfo_basic_free_dependency(dependency_x *dependency);
void pkgmgrinfo_basic_free_package(package_x *package);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
#endif