Fix ResTypePkgFilterChecker
[platform/core/appfw/pkgmgr-info.git] / include / pkgmgrinfo_basic.h
index d1e23c8..c89f31a 100644 (file)
@@ -3,6 +3,10 @@
 
 #include <glib.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct metadata_x {
        char *key;
        char *value;
@@ -63,11 +67,6 @@ typedef struct license_x {
        char *lang;
 } license_x;
 
-typedef struct condition_x {
-       char *name;
-       char *text;
-} condition_x;
-
 typedef struct notification_x {
        char *name;
        char *text;
@@ -77,6 +76,8 @@ typedef struct appcontrol_x {
        char *operation;
        char *uri;
        char *mime;
+       char *visibility;
+       char *id;
        GList *privileges;
 } appcontrol_x;
 
@@ -85,6 +86,13 @@ typedef struct compatibility_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;
@@ -114,6 +122,25 @@ typedef struct appdefined_privilege_x {
        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*/
@@ -164,6 +191,8 @@ typedef struct application_x {
        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*/
@@ -177,6 +206,8 @@ typedef struct application_x {
        GList *background_category; /*element*/
        GList *appcontrol; /*element*/
        GList *splashscreens; /*element*/
+       GList *res_control; /*element*/
+       GList *privileges; /*element*/
 } application_x;
 
 typedef struct package_x {
@@ -208,8 +239,12 @@ 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*/
@@ -221,6 +256,9 @@ typedef struct package_x {
        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 {
@@ -232,6 +270,10 @@ 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