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