Add missing api from Tizen 2.4
[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 appcontrol_x {
78         const char *operation;
79         const char *uri;
80         const char *mime;
81 } appcontrol_x;
82
83 typedef struct compatibility_x {
84         const char *name;
85         const char *text;
86 } compatibility_x;
87
88 typedef struct datacontrol_x {
89         const char *providerid;
90         const char *access;
91         const char *type;
92 } datacontrol_x;
93
94 typedef struct application_x {
95         const char *appid;      /*attr*/
96         const char *exec;       /*attr*/
97         const char *nodisplay;  /*attr, default: "false"*/
98         const char *multiple;   /*attr, default: "false"*/
99         const char *taskmanage; /*attr, default: "true"*/
100         const char *enabled;    /*attr, default: "true"*/
101         const char *type;       /*attr*/
102         const char *categories; /*attr*/
103         const char *extraid;    /*attr*/
104         const char *hwacceleration;     /*attr, default: "default"*/
105         const char *screenreader;       /*attr, default: "use-system-setting"*/
106         const char *mainapp;    /*attr, default: "false"*/
107         const char *package;    /*set from package_x*/
108         const char *recentimage;        /*attr, default: "false"*/
109         const char *launchcondition;    /*attr, default: "false"*/
110         const char *indicatordisplay;   /*attr, default: "true"*/
111         const char *portraitimg;        /*attr*/
112         const char *landscapeimg;       /*attr*/
113         const char *effectimage_type;   /*attr, default: "image"*/
114         const char *guestmode_visibility;       /*attr, default: "true"*/
115         const char *component;  /*no xml part*/
116         const char *permission_type;    /*attr, default: "normal"*/
117         const char *component_type;     /*attr, default: "uiapp"*/
118         const char *preload;    /*no xml part*/
119         const char *submode;    /*attr, default: "false"*/
120         const char *submode_mainid;     /*attr, default: "false"*/
121         const char *process_pool;       /*attr, default: "false"*/
122         const char *installed_storage;
123         const char *autorestart;        /*attr, default: "false"*/
124         const char *onboot;     /*attr, default: "false"*/
125         const char *multi_instance;     /*attr, default: "false"*/
126         const char *multi_instance_mainid;      /*attr*/
127         const char *support_disable;    /*set from package_x*/
128         const char *ui_gadget;  /*attr, default: "false"*/
129         const char *launch_mode;        /*attr, default: "single"*/
130         const char *ambient_support;    /*attr, default: "false"*/
131         const char *alias_appid;        /*attr*/
132         const char *effective_appid;    /*attr*/
133         GList *label;   /*element*/
134         GList *icon;    /*element*/
135         GList *image;   /*element*/
136         GList *category; /*element*/
137         GList *metadata;        /*element*/
138         GList *permission;      /*element*/
139         GList *launchconditions;        /*element*/
140         GList *notification;    /*element*/
141         GList *datashare;       /*element*/
142         GList *datacontrol; /*element*/
143         GList *background_category; /*element*/
144         GList *appcontrol; /*element*/
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, no xml part*/
149         const char *package;            /**< package name, attr*/
150         const char *version;            /**< package version, attr*/
151         const char *installlocation;            /**< package install location, attr, default: "internal-only"*/
152         const char *ns;         /**<name space, attr*/
153         const char *removable;          /**< package removable flag, no xml part*/
154         const char *preload;            /**< package preload flag, no xml part*/
155         const char *readonly;           /**< package readonly flag, no xml part*/
156         const char *update;                     /**< package update flag, no xml part*/
157         const char *appsetting;         /**< package app setting flag, attr, default: "false"*/
158         const char *system;             /**< package system flag, no xml part*/
159         const char *type;               /**< package type, attr, default: "rpm"*/
160         const char *package_size;               /**< package size for external installation, attr*/
161         const char *installed_time;             /**< installed time after finishing of installation, no xml part*/
162         const char *installed_storage;          /**< package currently installed storage, no xml part*/
163         const char *storeclient_id;             /**< id of store client for installed package, attr*/
164         const char *mainapp_id;         /**< app id of main application, no xml part*/
165         const char *package_url;                /**< app id of main application, attr*/
166         const char *root_path;          /**< package root path, attr*/
167         const char *csc_path;           /**< package csc path, attr*/
168         const char *nodisplay_setting;          /**< package no display setting menu, attr, default: "false"*/
169         const char *support_disable;            /**< package support disable flag, attr, default: "false"*/
170         const char *api_version;                /**< minimum version of API package using, attr, default: patch_version trimmed version from tizen_full_version*/
171         const char *tep_name;   /*no xml part*/
172         const char *backend_installer;          /**< package backend installer, attr*/
173         GList *icon;            /**< package icon, element*/
174         GList *label;           /**< package label, element*/
175         GList *author;          /**< package author, element*/
176         GList *description;             /**< package description, element*/
177         GList *license;         /**< package license, no xml part*/
178         GList *privileges;      /**< package privileges, element*/
179         GList *application;             /**< package's application, element*/
180         GList *compatibility;           /**< package compatibility, element*/
181         GList *deviceprofile;           /**< package device profile, element*/
182 } package_x;
183
184 typedef struct package_x manifest_x;
185
186 void pkgmgrinfo_basic_free_application(application_x *application);
187 void pkgmgrinfo_basic_free_package(package_x *package);
188
189 #endif