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