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