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