Fix logging.hh
[platform/core/appfw/pkgmgr-info.git] / include / pkgmgrinfo_type.h
1 /*
2  * pkgmgr-info
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>,
7  * Jaeho Lee <jaeho81.lee@samsung.com>, Shobhit Srivastava <shobhit.s@samsung.com>
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  */
22
23 #ifndef __PKGMGRINFO_TYPE_H__
24 #define __PKGMGRINFO_TYPE_H__
25
26 #include <sys/types.h>
27
28 /* app background category value */
29 #define APP_BG_CATEGORY_USER_DISABLE_FALSE_VAL          0x00000
30 #define APP_BG_CATEGORY_USER_DISABLE_TRUE_VAL           0x00001
31 #define APP_BG_CATEGORY_MEDIA_VAL                       0x00002
32 #define APP_BG_CATEGORY_DOWNLOAD_VAL                    0x00004
33 #define APP_BG_CATEGORY_BGNETWORK_VAL                   0x00008
34 #define APP_BG_CATEGORY_LOCATION_VAL                    0x00010
35 #define APP_BG_CATEGORY_SENSOR_VAL                      0x00020
36 #define APP_BG_CATEGORY_IOTCOMM_VAL                     0x00040
37 #define APP_BG_CATEGORY_SYSTEM_VAL                      0x00080
38
39 #define APP_BG_CATEGORY_USER_DISABLE_FALSE_STR          "enable"
40 #define APP_BG_CATEGORY_USER_DISABLE_TRUE_STR           "disable"
41 #define APP_BG_CATEGORY_MEDIA_STR                       "media"
42 #define APP_BG_CATEGORY_DOWNLOAD_STR                    "download"
43 #define APP_BG_CATEGORY_BGNETWORK_STR                   "background-network"
44 #define APP_BG_CATEGORY_LOCATION_STR                    "location"
45 #define APP_BG_CATEGORY_SENSOR_STR                      "sensor"
46 #define APP_BG_CATEGORY_IOTCOMM_STR                     "iot-communication"
47 #define APP_BG_CATEGORY_SYSTEM                          "system"
48
49 /* Integer property for support-mode */
50 #define APP_SUPPORT_MODE_ULTRA_POWER_SAVING_VAL         0x00001
51 #define APP_SUPPORT_MODE_COOL_DOWN_VAL                          0x00002
52 #define APP_SUPPORT_MODE_SCREEN_READER_VAL                      0x00004
53
54 /* String property for support-mode */
55 #define APP_SUPPORT_MODE_ULTRA_POWER_SAVING_STR         "ultra-power-saving"
56 #define APP_SUPPORT_MODE_COOL_DOWN_STR          "cool-down"
57 #define APP_SUPPORT_MODE_SCREEN_READER_STR              "screen-reader"
58
59 /**
60  * @brief A type to retrieve uid information from the manifest handle
61  */
62 typedef struct {
63         uid_t uid;
64 } pkgmgrinfo_uidinfo_t;
65
66 /**
67  * @brief A handle to insert certificate information
68  */
69 typedef void *pkgmgrinfo_instcertinfo_h;
70
71 /**
72  * @brief Certificate Types to be used for setting information
73  */
74 typedef enum {
75         PMINFO_SET_AUTHOR_ROOT_CERT = 0,                /**< Author Root Certificate*/
76         PMINFO_SET_AUTHOR_INTERMEDIATE_CERT = 1,                /**< Author Intermediate Certificate*/
77         PMINFO_SET_AUTHOR_SIGNER_CERT = 2,              /**< Author Signer Certificate*/
78         PMINFO_SET_DISTRIBUTOR_ROOT_CERT = 3,           /**< Distributor Root Certificate*/
79         PMINFO_SET_DISTRIBUTOR_INTERMEDIATE_CERT = 4,           /**< Distributor Intermediate Certificate*/
80         PMINFO_SET_DISTRIBUTOR_SIGNER_CERT = 5,         /**< Distributor Signer Certificate*/
81         PMINFO_SET_DISTRIBUTOR2_ROOT_CERT = 6,          /**< End Entity Root Certificate*/
82         PMINFO_SET_DISTRIBUTOR2_INTERMEDIATE_CERT = 7,          /**< End Entity Intermediate Certificate*/
83         PMINFO_SET_DISTRIBUTOR2_SIGNER_CERT = 8,                /**< End Entity Signer Certificate*/
84 } pkgmgrinfo_instcert_type;
85
86 typedef enum {
87         PMINFO_CERT_COMPARE_MATCH,
88         PMINFO_CERT_COMPARE_MISMATCH,
89         PMINFO_CERT_COMPARE_LHS_NO_CERT,
90         PMINFO_CERT_COMPARE_RHS_NO_CERT,
91         PMINFO_CERT_COMPARE_BOTH_NO_CERT,
92         PMINFO_CERT_COMPARE_ERROR,
93 } pkgmgrinfo_cert_compare_result_type_e;
94
95 typedef enum {
96         PMINFO_APPINFO_GET_BASICINFO = 0x0001,
97         PMINFO_APPINFO_GET_LABEL = 0x0002,
98         PMINFO_APPINFO_GET_ICON = 0x0004,
99         PMINFO_APPINFO_GET_CATEGORY = 0x0008,
100         PMINFO_APPINFO_GET_APP_CONTROL = 0x0010,
101         PMINFO_APPINFO_GET_METADATA = 0x0020,
102         PMINFO_APPINFO_GET_SPLASH_SCREEN = 0x0040,
103         PMINFO_APPINFO_GET_RES_CONTROL = 0x0080,
104         PMINFO_APPINFO_GET_ALL = 0x00FF
105 } pkgmgrinfo_appinfo_get_option;
106
107 typedef enum {
108         PMINFO_PKGINFO_GET_BASICINFO = 0x0001,
109         PMINFO_PKGINFO_GET_LABEL = 0x0002,
110         PMINFO_PKGINFO_GET_ICON = 0x0004,
111         PMINFO_PKGINFO_GET_AUTHOR = 0x0008,
112         PMINFO_PKGINFO_GET_DESCRIPTION = 0x0010,
113         PMINFO_PKGINFO_GET_PRIVILEGE = 0x0020,
114         PMINFO_PKGINFO_GET_APPDEFINED_PRIVILEGE = 0x0040,
115         PMINFO_PKGINFO_GET_DEPENDENCY = 0x0080,
116         PMINFO_PKGINFO_GET_RES_INFO = 0x0100,
117         PMINFO_PKGINFO_GET_ALL = 0x01FF
118 } pkgmgrinfo_pkginfo_get_option;
119
120 /**
121  * @brief API return values
122  */
123 enum {
124         PMINFO_R_ENOENT = -3,           /**< No result */
125         PMINFO_R_EINVAL = -2,           /**< Invalid argument */
126         PMINFO_R_ERROR = -1,            /**< General error */
127         PMINFO_R_OK = 0                 /**< General success */
128 };
129
130 /**
131  * @brief Value to be used when filtering based on install location
132  */
133 #define PMINFO_PKGINFO_INSTALL_LOCATION_AUTO            "LOCATION_AUTO"
134
135 /**
136  * @brief Value to be used when filtering based on install location
137  */
138 #define PMINFO_PKGINFO_INSTALL_LOCATION_INTERNAL        "LOCATION_INTERNAL"
139
140 /**
141  * @brief Value to be used when filtering based on install location
142  */
143 #define PMINFO_PKGINFO_INSTALL_LOCATION_EXTERNAL        "LOCATION_EXTERNAL"
144
145 /**
146  * @brief Value to be used when get/set update information
147  */
148 #define PMINFO_UPDATEINFO_TYPE_FORCE    "force"
149
150 /**
151  * @brief Value to be used when get/set update information
152  */
153 #define PMINFO_UPDATEINFO_TYPE_OPTIONAL "optional"
154
155 /**
156  * @brief Value to be used when get/set update information
157  */
158 #define PMINFO_UPDATEINFO_TYPE_NONE     "none"
159
160 typedef enum {
161         PMINFO_UPDATEINFO_NONE = 0,             /**<No update info exists*/
162         PMINFO_UPDATEINFO_FORCE,                /**<Don't launch application if it's not updated*/
163         PMINFO_UPDATEINFO_OPTIONAL              /**<Update exists but not force user to update it*/
164 } pkgmgrinfo_updateinfo_update_type;
165
166 typedef enum {
167         PMINFO_HWACCELERATION_OFF = 0,          /**< Don't use hardware acceleration*/
168         PMINFO_HWACCELERATION_ON = 1,           /**< Use hardware acceleration*/
169         PMINFO_HWACCELERATION_DEFAULT = 2               /**< Follow system setting for hardware acceleration */
170 } pkgmgrinfo_app_hwacceleration;
171
172 typedef enum {
173         PMINFO_SCREENREADER_OFF = 0,            /**< Don't use screen reader*/
174         PMINFO_SCREENREADER_ON = 1,             /**< Use screen reader*/
175         PMINFO_SCREENREADER_USE_SYSTEM_SETTING = 2              /**< Follow system setting for screen reader */
176 } pkgmgrinfo_app_screenreader;
177
178 typedef enum {
179         PMINFO_RECENTIMAGE_USE_ICON = 0,                /**<Use icon for recent image*/
180         PMINFO_RECENTIMAGE_USE_CAPTURE = 1,             /**< Use capture for recent image*/
181         PMINFO_RECENTIMAGE_USE_NOTHING = 2              /**< Don't use recent image */
182 } pkgmgrinfo_app_recentimage;
183
184 /**
185  * @brief A handle to get package information
186  */
187 typedef void *pkgmgrinfo_pkginfo_h;
188
189 /**
190  * @brief A handle to get application information
191  */
192 typedef void *pkgmgrinfo_appinfo_h;
193
194 /**
195  * @brief A handle to get certificate information
196  */
197 typedef void *pkgmgrinfo_certinfo_h;
198
199 /**
200  * @brief A handle to filter package information
201  */
202 typedef void *pkgmgrinfo_pkginfo_filter_h;
203
204 /**
205  * @brief A handle to get/set package update information
206  */
207 typedef void *pkgmgrinfo_updateinfo_h;
208
209 /**
210  * @brief A handle to filter application information
211  */
212 typedef void *pkgmgrinfo_appinfo_filter_h;
213
214 /**
215  * @brief A handle to filter application metadata  information
216  */
217 typedef void *pkgmgrinfo_appinfo_metadata_filter_h;
218
219 /**
220  * @brief A handle to get package archive information
221  */
222 typedef void *pkgmgrinfo_archiveinfo_h;
223
224 /**
225  * @brief A handle to get allowed package required privilege
226  */
227 typedef void *required_privilege_h;
228
229 /**
230  * @brief type definition.
231  */
232 typedef void pkgmgrinfo_client;
233
234 /**
235  * @fn int (*pkgmgrinfo_foreach_updateinfo_cb) (const pkgmgrinfo_updateinfo_h handle, void *user_data)
236  *
237  * @brief Specifies the type of function passed to pkgmgrinfo_updateinfo_foreach_updateinfo()
238  *
239  * @param[in] handle the package update info handle
240  * @param[in] user_data user data passed to pkgmgrinfo_foreach_pkg_update info()
241  *
242  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
243  *
244  * @see  pkgmgrinfo_updateinfo_foreach_updateinfo()
245  */
246 typedef int (*pkgmgrinfo_foreach_updateinfo_cb) (const pkgmgrinfo_updateinfo_h handle,
247                                                         void *user_data);
248
249 /**
250  * @fn int (*pkgmgrinfo_pkg_list_cb) (const pkgmgrinfo_pkginfo_h handle, void *user_data)
251  *
252  * @brief Specifies the type of function passed to pkgmgrinfo_pkginfo_get_list(), pkgmgrinfo_pkginfo_filter_foreach_pkginfo()
253  *
254  * @param[in] handle the pkginfo handle
255  * @param[in] user_data user data passed to pkgmgrinfo_pkginfo_get_list(), pkgmgrinfo_pkginfo_filter_foreach_pkginfo()
256  *
257  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
258  *
259  * @see  pkgmgrinfo_pkginfo_get_list()
260  * @see  pkgmgrinfo_pkginfo_filter_foreach_pkginfo()
261  */
262 typedef int (*pkgmgrinfo_pkg_list_cb) (const pkgmgrinfo_pkginfo_h handle,
263                                                         void *user_data);
264
265 /**
266  * @fn int (*pkgmgrinfo_app_list_cb) (const pkgmgrinfo_appinfo_h handle, void *user_data)
267  *
268  * @brief Specifies the type of function passed to pkgmgrinfo_appinfo_get_list(), pkgmgrinfo_appinfo_filter_foreach_appinfo(), pkgmgrinfo_appinfo_metadata_filter_foreach()
269  *
270  * @param[in] handle the appinfo handle
271  * @param[in] user_data user data passed to pkgmgrinfo_appinfo_get_list(), pkgmgrinfo_appinfo_filter_foreach_appinfo(), pkgmgrinfo_appinfo_metadata_filter_foreach()
272  *
273  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
274  *
275  * @see  pkgmgrinfo_appinfo_get_list()
276  * @see  pkgmgrinfo_appinfo_filter_foreach_appinfo()
277  * @see  pkgmgrinfo_appinfo_metadata_filter_foreach()
278  */
279 typedef int (*pkgmgrinfo_app_list_cb) (const pkgmgrinfo_appinfo_h handle,
280                                                         void *user_data);
281
282 /**
283  * @fn int (*pkgmgrinfo_app_category_list_cb) (const char *category_name, void *user_data)
284  *
285  * @brief Specifies the type of function passed to pkgmgrinfo_appinfo_foreach_category()
286  *
287  * @param[in] category_name the name of the category
288  * @param[in] user_data user data passed to pkgmgrinfo_appinfo_foreach_category()
289  *
290  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
291  *
292  * @see  pkgmgrinfo_appinfo_foreach_category()
293  */
294 typedef int (*pkgmgrinfo_app_category_list_cb) (const char *category_name,
295                                                         void *user_data);
296
297 /**
298  * @fn int (*pkgmgrinfo_pkg_privilege_list_cb) (const char *privilege_name, void *user_data)
299  *
300  * @brief Specifies the type of function passed to pkgmgrinfo_pkginfo_foreach_privilege()
301  *
302  * @param[in] privilege_name the name of the privilege
303  * @param[in] user_data user data passed to pkgmgrinfo_pkginfo_foreach_privilege()
304  *
305  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
306  *
307  * @see  pkgmgrinfo_pkginfo_foreach_privilege()
308  */
309 typedef int (*pkgmgrinfo_pkg_privilege_list_cb) (const char *privilege_name,
310                                                         void *user_data);
311
312 /**
313  * @fn int (*pkgmgrinfo_pkg_appdefined_privilege_list_cb) (const char *privilege_name, const char *license_path, void *user_data)
314  *
315  * @brief Specifies the type of function passed to pkgmgrinfo_pkginfo_foreach_appdefined_privilege()
316  *
317  * @param[in] privilege_name the name of the privilege
318  * @param[in] license_path the path of the license
319  * @param[in] user_data user data passed to pkgmgrinfo_pkginfo_foreach_appdefined_privilege()
320  *
321  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
322  *
323  * @see  pkgmgrinfo_pkginfo_foreach_appdefined_privilege()
324  */
325 typedef int (*pkgmgrinfo_pkg_appdefined_privilege_list_cb) (const char *privilege_name,
326                                                         const char *license_path,
327                                                         void *user_data);
328 /**
329  * @fn int (*pkgmgrinfo_pkg_dependency_list_cb) (const char *from, const char *to, const char *type, const char *required_version, void *user_data)
330  *
331  * @brief Specifies the dependency info of given package passed to pkgmgrinfo_pkginfo_foreach_dependency(), pkgmgrinfo_pkginfo_foreach_required_by(), pkgmgrinfo_archiveinfo_foreach_dependency()
332  *
333  * @param[in] from the pkgid which depends other package
334  * @param[in] to the pkgid which has dependency with given package
335  * @param[in] type type of dependency
336  * @param[in] required_version required version of dependency
337  * @param[in] user_data user data passed
338  *
339  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
340  *
341  * @see  pkgmgrinfo_pkginfo_foreach_dependency()
342  * @see  pkgmgrinfo_pkginfo_foreach_required_by()
343  */
344 typedef int (*pkgmgrinfo_pkg_dependency_list_cb) (const char *from, const char *to,
345                 const char *type, const char *required_version,
346                 void *user_data);
347
348 /**
349  * @fn int (*pkgmgrinfo_plugin_list_cb) (const char *pkgid, const char *appid, const char *plugin_type, const char *plugin_name, void *user_data);
350  *
351  * @brief Specifies the type of function passed to pkgmgrinfo_plugininfo_foreach_plugininfo()
352  *
353  * @param[in] pkgid the name of the package
354  * @param[in] appid the name of the application
355  * @param[in] plugin_type the type of the executed plugin
356  * @param[in] plugin_name the name of the executed plugin
357  * @param[in] user_data user data passed to pkgmgrinfo_plugininfo_foreach_plugininfo()
358  *
359  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
360  *
361  * @see  pkgmgrinfo_plugininfo_foreach_plugininfo()
362  */
363 typedef int (*pkgmgrinfo_plugin_list_cb) (const char *pkgid, const char *appid,
364                 const char *plugin_type, const char *plugin_name,
365                 void *user_data);
366
367 /**
368  * @fn int (*pkgmgrinfo_res_allowed_package_list_cb) (
369                 const char *allowed_package,
370                 required_privilege_h privilege_handle, void *user_data);
371  *
372  * @brief Specifies the type of function passed to pkgmgrinfo_pkginfo_foreach_res_allowed_package()
373  *
374  * @param[in] allowed_package the name of the package
375  * @param[in] privilege_handle the required privilege handle of the package
376  * @param[in] user_data user data passed to pkgmgrinfo_pkginfo_foreach_res_allowed_package()
377  *
378  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
379  *
380  * @see  pkgmgrinfo_pkginfo_foreach_res_allowed_package()
381  */
382 typedef int (*pkgmgrinfo_res_allowed_package_list_cb) (
383                 const char *allowed_package,
384                 required_privilege_h privilege_handle, void *user_data);
385
386 /**
387  * @fn int (*pkgmgrinfo_app_metadata_list_cb) (const char *metadata_key, const char *metadata_value, void *user_data)
388  *
389  * @brief Specifies the type of function passed to pkgmgrinfo_appinfo_foreach_metadata()
390  *
391  * @param[in] metadata_name the name of the metadata
392  * @param[in] metadata_value the value of the metadata
393  * @param[in] user_data user data passed to pkgmgrinfo_appinfo_foreach_metadata()
394  *
395  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
396  *
397  * @see  pkgmgrinfo_appinfo_foreach_metadata()
398  */
399 typedef int (*pkgmgrinfo_app_metadata_list_cb) (const char *metadata_key,
400                                                         const char *metadata_value, void *user_data);
401
402 /**
403  * @fn int (*pkgmgrinfo_app_control_list_cb) (const char *operation, const char *uri, const char *mime, void *user_data);
404  *
405  * @brief Specifies the type of function passed to pkgmgrinfo_appinfo_foreach_appcontrol()
406  *
407  * @param[in] operation The operation of the app-control
408  * @param[in] uri       The URI of the app-control
409  * @param[in] mime      The MIME-Type of the app-control
410  * @param[in] user_data user data passed to pkgmgrinfo_appinfo_foreach_appcontrol()
411  *
412  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
413  *
414  * @see  pkgmgrinfo_appinfo_foreach_appcontrol()
415  */
416 typedef int (*pkgmgrinfo_app_control_list_cb) (const char *operation, const char *uri, const char *mime,
417                                                         void *user_data);
418 /**
419  * @fn int (*pkgmgrinfo_app_control_list_cb_v2) (const char *operation, const char *uri, const char *mime, const char *id, void *user_data)
420  *
421  * @brief Specifies the type of function passed to pkgmgrinfo_appinfo_foreach_appcontrol_info()
422  *
423  * @param[in] operation The operation of the app-control
424  * @param[in] uri       The URI of the app-control
425  * @param[in] mime      The MIME-Type of the app-control
426  * @param[in] id        The ID of the app-control
427  * @param[in] user_data The user data passed from pkgmgrinfo_appinfo_foreach_appcontrol_v2()
428  *
429  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
430  *
431  * @see  pkgmgrinfo_appinfo_foreach_appcontrol_v2()
432  */
433 typedef int (*pkgmgrinfo_app_control_list_cb_v2) (const char *operation,
434                 const char *uri, const char *mime, const char *id,
435                 void *user_data);
436
437 /**
438  * @fn int (*pkgmgrinfo_app_background_category_list_cb) (const char *category_name, void *user_data)
439  *
440  * @brief Specifies the type of function passed to pkgmgrinfo_appinfo_foreach_background_category()
441  *
442  * @param[in] category_name retrieved background category name
443  * @param[in] user_data user data passed to pkgmgrinfo_appinfo_foreach_background_category
444  *
445  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
446  *
447  * @see  pkgmgrinfo_appinfo_foreach_background_category()
448  */
449 typedef int (*pkgmgrinfo_app_background_category_list_cb) (const char *category_name, void *user_data);
450
451 /**
452  * @fn int (*pkgmgrinfo_app_splash_screen_list_cb)(const char *src,
453  *              const char *type, const char *orientation,
454  *              const char *indicatordisplay, const char *color_depth,
455  *              void *user_data);
456  * @brief Specifies the type of function passed to pkgmgrinfo_appinfo_foreach_splash_screen()
457  *
458  * @param[in] src the source of the splashscreen
459  * @param[in] type the type of the splashscreen
460  * @param[in] orientation the orientation of the splashscreen
461  * @param[in] indicatordisplay the indicator-display of the splashscreen
462  * @param[in] operation the app-control operation of the splashscreen
463  * @param[in] color_depth the color-depth of the splashscreen
464  * @param[in] user_data user data passed to pkgmgrinfo_appinfo_foreach_splash_screen()
465  *
466  * @return 0 if success, negative value(<0) if fail, Callback is not called if return value is negative.\n
467  *
468  * @see pkgmgrinfo_appinfo_foreach_splash_screen()
469  */
470 typedef int (*pkgmgrinfo_app_splash_screen_list_cb)(const char *src,
471                 const char *type, const char *orientation,
472                 const char *indicatordisplay, const char *operation,
473                 const char *color_depth, void *user_data);
474
475 /**
476  * @fn int (*pkgmgrinfo_app_res_control_list_cb) (const char *res_type,
477                 const char *min_res_version, const char *max_res_version,
478                 const char *auto_close, void *user_data);
479  * @brief Specifies the type of function passed to pkgmgrinfo_appinfo_foreach_res_control()
480  *
481  * @param[in] res_type the resource type of the res_control
482  * @param[in] min_res_version the minimum resource version of the res_control
483  * @param[in] max_res_version the maximum resource version of the res_control
484  * @param[in] auto_close the auto close of the res_control
485  * @param[in] user_data user data passed to pkgmgrinfo_appinfo_foreach_res_control()
486  *
487  * @return 0 if success, negative value(<0) if fail, Callback is not called if return value is negative.\n
488  *
489  * @see pkgmgrinfo_appinfo_foreach_res_control()
490  */
491
492 typedef int (*pkgmgrinfo_app_res_control_list_cb) (const char *res_type,
493                 const char *min_res_version, const char *max_res_version,
494                 const char *auto_close, void *user_data);
495
496
497
498 /**
499  * @brief Install Location Types
500  */
501 typedef enum {
502         PMINFO_INSTALL_LOCATION_AUTO = 0,               /**< Auto*/
503         PMINFO_INSTALL_LOCATION_INTERNAL_ONLY,          /**< Internal Installation*/
504         PMINFO_INSTALL_LOCATION_PREFER_EXTERNAL,                /**< External Installation*/
505 } pkgmgrinfo_install_location;
506
507 /**
508  * @brief Application Component Types
509  */
510 typedef enum {
511         PMINFO_ALL_APP = 0,             /**< All Application*/
512         PMINFO_UI_APP,                  /**< UI Application*/
513         PMINFO_SVC_APP,                 /**< Service Application*/
514         PMINFO_WIDGET_APP,              /**< Widget Application*/
515         PMINFO_WATCH_APP,               /**< Watch Application*/
516         PMINFO_COMPONENT_BASED_APP,     /**< Component-based Application (Since 5.5)*/
517 } pkgmgrinfo_app_component;
518
519 /**
520  * @brief Application Storage Types
521  */
522 typedef enum {
523         PMINFO_INTERNAL_STORAGE = 0,            /**< Internal Storage*/
524         PMINFO_EXTERNAL_STORAGE = 1,            /**< External Storage*/
525         PMINFO_EXTENDED_STORAGE = 2,            /**< Extended Storage*/
526 } pkgmgrinfo_installed_storage;
527
528 /**
529  * @brief Certificate Types to be used for getting information
530  */
531 typedef enum {
532         PMINFO_AUTHOR_ROOT_CERT = 0,            /**< Author Root Certificate*/
533         PMINFO_AUTHOR_INTERMEDIATE_CERT = 1,            /**< Author Intermediate Certificate*/
534         PMINFO_AUTHOR_SIGNER_CERT = 2,          /**< Author Signer Certificate*/
535         PMINFO_DISTRIBUTOR_ROOT_CERT = 3,               /**< Distributor Root Certificate*/
536         PMINFO_DISTRIBUTOR_INTERMEDIATE_CERT = 4,               /**< Distributor Intermediate Certificate*/
537         PMINFO_DISTRIBUTOR_SIGNER_CERT = 5,             /**< Distributor Signer Certificate*/
538         PMINFO_DISTRIBUTOR2_ROOT_CERT = 6,              /**< End Entity Root Certificate*/
539         PMINFO_DISTRIBUTOR2_INTERMEDIATE_CERT = 7,              /**< End Entity Intermediate Certificate*/
540         PMINFO_DISTRIBUTOR2_SIGNER_CERT = 8,            /**< End Entity Signer Certificate*/
541 } pkgmgrinfo_cert_type;
542
543 /**
544  * @brief version comparison Types
545  */
546 typedef enum {
547         PMINFO_VERSION_OLD = -1,
548         PMINFO_VERSION_SAME,
549         PMINFO_VERSION_NEW,
550 } pkgmgrinfo_version_compare_type;
551
552 /**
553  * @brief Install Location Types to be used when setting data in DB
554  */
555 typedef enum {
556         INSTALL_INTERNAL = 0,           /**< Internal Installation*/
557         INSTALL_EXTERNAL,               /**< External Installation*/
558         INSTALL_EXTENDED,               /**< Extended Installation*/
559 } INSTALL_LOCATION;
560
561 /**
562  * @brief permission Types
563  */
564 typedef enum {
565         PMINFO_PERMISSION_NORMAL = 0,           /**< permission normal*/
566         PMINFO_PERMISSION_SIGNATURE,            /**< permission type is signature*/
567         PMINFO_PERMISSION_PRIVILEGE,            /**< permission type is privilege*/
568 } pkgmgrinfo_permission_type;
569
570 #endif