c08b1b45807c8d54c96c54379e2206dc6d25b47a
[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         const char *key;
8         const char *value;
9 } metadata_x;
10
11 typedef struct permission_x {
12         const char *type;
13         const char *value;
14 } permission_x;
15
16 typedef struct icon_x {
17         const char *name;
18         const char *text;
19         const char *lang;
20         const char *section;
21         const char *size;
22         const char *resolution;
23 } icon_x;
24
25 typedef struct image_x {
26         const char *name;
27         const char *text;
28         const char *lang;
29         const char *section;
30 } image_x;
31
32 typedef struct define_x {
33         const char *path;
34         GList *allowed;
35         GList *request;
36 } define_x;
37
38 typedef struct datashare_x {
39         GList *define;
40         GList *request;
41 } datashare_x;
42
43 typedef struct description_x {
44         const char *name;
45         const char *text;
46         const char *lang;
47 } description_x;
48
49 typedef struct label_x {
50         const char *name;
51         const char *text;
52         const char *lang;
53 } label_x;
54
55 typedef struct author_x {
56         const char *email;
57         const char *href;
58         const char *text;
59         const char *lang;
60 } author_x;
61
62 typedef struct license_x {
63         const char *text;
64         const char *lang;
65 } license_x;
66
67 typedef struct condition_x {
68         const char *name;
69         const char *text;
70 } condition_x;
71
72 typedef struct notification_x {
73         const char *name;
74         const char *text;
75 } notification_x;
76
77 typedef struct appsvc_x {
78         const char *text;
79         const char *operation;
80         const char *uri;
81         const char *mime;
82         const char *subapp;
83 } appsvc_x;
84
85 typedef struct appcontrol_x {
86         const char *operation;
87         const char *uri;
88         const char *mime;
89 } appcontrol_x;
90
91 typedef struct compatibility_x {
92         const char *name;
93         const char *text;
94 } compatibility_x;
95
96 typedef struct datacontrol_x {
97         const char *providerid;
98         const char *access;
99         const char *type;
100 } datacontrol_x;
101
102 typedef struct application_x {
103         const char *appid;
104         const char *component;
105         const char *exec;
106         const char *nodisplay;
107         const char *type;
108         const char *onboot;
109         const char *multiple;
110         const char *autorestart;
111         const char *taskmanage;
112         const char *enabled;
113         const char *categories;
114         const char *extraid;
115         const char *hwacceleration;
116         const char *screenreader;
117         const char *mainapp;
118         const char *recentimage;
119         const char *launchcondition;
120         const char *indicatordisplay;
121         const char *portraitimg;
122         const char *landscapeimg;
123         const char *guestmode_visibility;
124         const char *permission_type;
125         const char *preload;
126         const char *submode;
127         const char *submode_mainid;
128         const char *launch_mode;
129         const char *ui_gadget;
130         const char *support_disable;
131         const char *component_type;
132         const char *package;
133         GList *label;
134         GList *icon;
135         GList *image;
136         GList *appsvc;
137         GList *appcontrol;
138         GList *category;
139         GList *metadata;
140         GList *permission;
141         GList *launchconditions;
142         GList *notification;
143         GList *datashare;
144         GList *datacontrol;
145 } application_x;
146
147 typedef struct package_x {
148         const char *for_all_users;              /**< Flag that indicates if the package is available for everyone or for current user only*/
149         const char *package;            /**< package name*/
150         const char *version;            /**< package version*/
151         const char *installlocation;            /**< package install location*/
152         const char *ns;         /**<name space*/
153         const char *removable;          /**< package removable flag*/
154         const char *preload;            /**< package preload flag*/
155         const char *readonly;           /**< package readonly flag*/
156         const char *update;                     /**< package update flag*/
157         const char *appsetting;         /**< package app setting flag*/
158         const char *system;             /**< package system flag*/
159         const char *type;               /**< package type*/
160         const char *package_size;               /**< package size for external installation*/
161         const char *installed_time;             /**< installed time after finishing of installation*/
162         const char *installed_storage;          /**< package currently installed storage*/
163         const char *storeclient_id;             /**< id of store client for installed package*/
164         const char *mainapp_id;         /**< app id of main application*/
165         const char *package_url;                /**< app id of main application*/
166         const char *root_path;          /**< package root path*/
167         const char *csc_path;           /**< package csc path*/
168         const char *nodisplay_setting;          /**< package no display setting menu*/
169         const char *api_version;                /**< minimum version of API package using*/
170         const char *support_disable;            /**< package support disable flag*/
171         GList *icon;            /**< package icon*/
172         GList *label;           /**< package label*/
173         GList *author;          /**< package author*/
174         GList *description;             /**< package description*/
175         GList *license;         /**< package license*/
176         GList *privileges;      /**< package privileges*/
177         GList *application;             /**< package's application*/
178         GList *compatibility;           /**< package compatibility*/
179 } package_x;
180
181 typedef struct package_x manifest_x;
182
183 void pkgmgrinfo_basic_free_application(application_x *application);
184 void pkgmgrinfo_basic_free_package(package_x *package);
185
186 #endif