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