b5a63cce3041f774c19af04e7973ed6188a4aca3
[platform/core/appfw/pkgmgr-info.git] / include / pkgmgrinfo_basic.h
1 #ifndef __PKGMGR_INFO_BASIC_H__
2 #define __PKGMGR_INFO_BASIC_H__
3
4 #include <glib.h>
5
6 typedef struct metadata_x {
7         char *key;
8         char *value;
9 } metadata_x;
10
11 typedef struct permission_x {
12         char *type;
13         char *value;
14 } permission_x;
15
16 typedef struct icon_x {
17         char *text;
18         char *lang;
19         char *section;
20         char *size;
21         char *resolution;
22         char *dpi;
23 } icon_x;
24
25 typedef struct image_x {
26         char *text;
27         char *lang;
28         char *section;
29 } image_x;
30
31 typedef struct define_x {
32         char *path;
33         GList *allowed;
34         GList *request;
35 } define_x;
36
37 typedef struct datashare_x {
38         GList *define;
39         GList *request;
40 } datashare_x;
41
42 typedef struct description_x {
43         char *name;
44         char *text;
45         char *lang;
46 } description_x;
47
48 typedef struct label_x {
49         char *name;
50         char *text;
51         char *lang;
52 } label_x;
53
54 typedef struct author_x {
55         char *email;
56         char *href;
57         char *text;
58         char *lang;
59 } author_x;
60
61 typedef struct license_x {
62         char *text;
63         char *lang;
64 } license_x;
65
66 typedef struct condition_x {
67         char *name;
68         char *text;
69 } condition_x;
70
71 typedef struct notification_x {
72         char *name;
73         char *text;
74 } notification_x;
75
76 typedef struct appcontrol_x {
77         char *operation;
78         char *uri;
79         char *mime;
80 } appcontrol_x;
81
82 typedef struct compatibility_x {
83         char *name;
84         char *text;
85 } compatibility_x;
86
87 typedef struct datacontrol_x {
88         char *providerid;
89         char *access;
90         char *type;
91         char *trusted;
92 } datacontrol_x;
93
94 typedef struct splashscreen_x {
95         char *src;
96         char *type;
97         char *dpi;
98         char *orientation;
99         char *indicatordisplay;
100         char *operation;
101         char *color_depth;
102 } splashscreen_x;
103
104 typedef struct privilege_x {
105         char *type;
106         char *value;
107 } privilege_x;
108
109 typedef struct application_x {
110         char *appid;    /*attr*/
111         char *exec;     /*attr*/
112         char *nodisplay;        /*attr, default: "false"*/
113         char *multiple; /*attr, default: "false"*/
114         char *taskmanage;       /*attr, default: "true"*/
115         char *type;     /*attr*/
116         char *categories;       /*attr*/
117         char *extraid;  /*attr*/
118         char *hwacceleration;   /*attr, default: "default"*/
119         char *screenreader;     /*attr, default: "use-system-setting"*/
120         char *mainapp;  /*attr, default: "false"*/
121         char *package;  /*set from package_x*/
122         char *recentimage;      /*attr, default: "false"*/
123         char *launchcondition;  /*attr, default: "false"*/
124         char *indicatordisplay; /*attr, default: "true"*/
125         char *portraitimg;      /*attr*/
126         char *landscapeimg;     /*attr*/
127         char *effectimage_type; /*attr, default: "image"*/
128         char *guestmode_visibility;     /*attr, default: "true"*/
129         char *component;        /*no xml part*/
130         char *permission_type;  /*attr, default: "normal"*/
131         char *component_type;   /*attr, default: "uiapp"*/
132         char *preload;  /*no xml part*/
133         char *submode;  /*attr, default: "false"*/
134         char *submode_mainid;   /*attr, default: "false"*/
135         char *process_pool;     /*attr, default: "false"*/
136         char *installed_storage;
137         char *autorestart;      /*attr, default: "false"*/
138         char *onboot;   /*attr, default: "false"*/
139         char *support_disable;  /*set from package_x*/
140         char *ui_gadget;        /*attr, default: "false"*/
141         char *launch_mode;      /*attr, default: "single"*/
142         char *support_ambient;  /*attr, default: "false"*/
143         char *setup_appid;      /*attr*/
144         char *alias_appid;      /*attr*/
145         char *effective_appid;  /*attr*/
146         char *package_type;     /*set from package_x*/
147         char *tep_name; /*set from package_x*/
148         char *zip_mount_file;   /*set from package_x*/
149         char *root_path;        /*set from package_x*/
150         char *api_version;      /*set from package_x*/
151         char *for_all_users; /**< Flag that indicates if the package is available for everyone or for current user only, no xml part*/
152         char *is_disabled; /**< Flag that indicates if the application is disabled or not, no xml part*/
153         char *splash_screen_display; /*attr, default: "true"*/
154         char *external_path; /**< external storage path if exists, no xml part*/
155         char *package_system; /*set from package_x*/
156         char *removable; /*set from package_x*/
157         char *package_installed_time; /*installed time after finishing of installation*/
158         char *support_mode; /*attr*/
159         GList *label;   /*element*/
160         GList *icon;    /*element*/
161         GList *image;   /*element*/
162         GList *category; /*element*/
163         GList *metadata;        /*element*/
164         GList *permission;      /*element*/
165         GList *launchconditions;        /*element*/
166         GList *notification;    /*element*/
167         GList *datashare;       /*element*/
168         GList *datacontrol; /*element*/
169         GList *background_category; /*element*/
170         GList *appcontrol; /*element*/
171         GList *splashscreens; /*element*/
172 } application_x;
173
174 typedef struct package_x {
175         char *for_all_users;            /**< Flag that indicates if the package is available for everyone or for current user only, no xml part*/
176         char *package;          /**< package name, attr*/
177         char *version;          /**< package version, attr*/
178         char *installlocation;          /**< package install location, attr, default: "internal-only"*/
179         char *ns;               /**<name space, attr*/
180         char *removable;                /**< package removable flag, no xml part*/
181         char *preload;          /**< package preload flag, no xml part*/
182         char *readonly;         /**< package readonly flag, no xml part*/
183         char *update;                   /**< package update flag, no xml part*/
184         char *appsetting;               /**< package app setting flag, attr, default: "false"*/
185         char *system;           /**< package system flag, no xml part*/
186         char *type;             /**< package type, attr*/
187         char *package_size;             /**< package size for external installation, attr*/
188         char *installed_time;           /**< installed time after finishing of installation, no xml part*/
189         char *installed_storage;                /**< package currently installed storage, no xml part*/
190         char *storeclient_id;           /**< id of store client for installed package, attr*/
191         char *mainapp_id;               /**< app id of main application, no xml part*/
192         char *package_url;              /**< app id of main application, attr*/
193         char *root_path;                /**< package root path, attr*/
194         char *csc_path;         /**< package csc path, attr*/
195         char *nodisplay_setting;                /**< package no display setting menu, attr, default: "false"*/
196         char *support_mode; /**< package support mode, attr*/
197         char *support_disable;          /**< package support disable flag, attr, default: "false"*/
198         char *api_version;              /**< minimum version of API package using, attr, default: patch_version trimmed version from tizen_full_version*/
199         char *tep_name; /*no xml part*/
200         char *zip_mount_file;   /*no xml part*/
201         char *backend_installer;                /**< package backend installer, attr*/
202         char *external_path; /**< external storage path if exists, no xml part*/
203         GList *icon;            /**< package icon, element*/
204         GList *label;           /**< package label, element*/
205         GList *author;          /**< package author, element*/
206         GList *description;             /**< package description, element*/
207         GList *license;         /**< package license, no xml part*/
208         GList *privileges;      /**< package privileges, element*/
209         GList *application;             /**< package's application, element*/
210         GList *compatibility;           /**< package compatibility, element*/
211         GList *deviceprofile;           /**< package device profile, element*/
212 } package_x;
213
214 typedef struct updateinfo_x {
215         char *pkgid;
216         char *version;
217         int type;
218 } updateinfo_x;
219
220 typedef struct package_x manifest_x;
221
222 void pkgmgrinfo_basic_free_application(application_x *application);
223 void pkgmgrinfo_basic_free_package(package_x *package);
224
225 #endif