Release version 0.13.5
[platform/core/appfw/pkgmgr-info.git] / include / pkgmgrinfo_type.h
index e92f069..a2404f7 100644 (file)
@@ -110,7 +110,8 @@ typedef enum {
        PMINFO_PKGINFO_GET_AUTHOR = 0x0008,
        PMINFO_PKGINFO_GET_DESCRIPTION = 0x0010,
        PMINFO_PKGINFO_GET_PRIVILEGE = 0x0020,
-       PMINFO_PKGINFO_GET_ALL = 0x003F
+       PMINFO_PKGINFO_GET_APPDEFINED_PRIVILEGE = 0x0040,
+       PMINFO_PKGINFO_GET_ALL = 0x007F
 } pkgmgrinfo_pkginfo_get_option;
 
 /**
@@ -291,33 +292,35 @@ typedef int (*pkgmgrinfo_app_category_list_cb) (const char *category_name,
                                                        void *user_data);
 
 /**
- * @fn int (*pkgmgrinfo_app_permission_list_cb) (const char *permission_type, void *user_data)
+ * @fn int (*pkgmgrinfo_pkg_privilege_list_cb) (const char *privilege_name, void *user_data)
  *
- * @brief Specifies the type of function passed to pkgmgrinfo_appinfo_foreach_category()
+ * @brief Specifies the type of function passed to pkgmgrinfo_pkginfo_foreach_privilege()
  *
- * @param[in] permission_name the name of the permission
- * @param[in] user_data user data passed to pkgmgrinfo_appinfo_foreach_category()
+ * @param[in] privilege_name the name of the privilege
+ * @param[in] user_data user data passed to pkgmgrinfo_pkginfo_foreach_privilege()
  *
  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
  *
- * @see  pkgmgrinfo_appinfo_foreach_category()
+ * @see  pkgmgrinfo_pkginfo_foreach_privilege()
  */
-typedef int (*pkgmgrinfo_app_permission_list_cb) (const char *permission_type,
+typedef int (*pkgmgrinfo_pkg_privilege_list_cb) (const char *privilege_name,
                                                        void *user_data);
 
 /**
- * @fn int (*pkgmgrinfo_pkg_privilege_list_cb) (const char *privilege_name, void *user_data)
+ * @fn int (*pkgmgrinfo_pkg_appdefined_privilege_list_cb) (const char *privilege_name, const char *license_path, void *user_data)
  *
- * @brief Specifies the type of function passed to pkgmgrinfo_pkginfo_foreach_privilege()
+ * @brief Specifies the type of function passed to pkgmgrinfo_pkginfo_foreach_appdefined_privilege()
  *
  * @param[in] privilege_name the name of the privilege
- * @param[in] user_data user data passed to pkgmgrinfo_pkginfo_foreach_privilege()
+ * @param[in] license_path the path of the license
+ * @param[in] user_data user data passed to pkgmgrinfo_pkginfo_foreach_appdefined_privilege()
  *
  * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
  *
- * @see  pkgmgrinfo_pkginfo_foreach_privilege()
+ * @see  pkgmgrinfo_pkginfo_foreach_appdefined_privilege()
  */
-typedef int (*pkgmgrinfo_pkg_privilege_list_cb) (const char *privilege_name,
+typedef int (*pkgmgrinfo_pkg_appdefined_privilege_list_cb) (const char *privilege_name,
+                                                       const char *license_path,
                                                        void *user_data);
 
 /**
@@ -415,6 +418,7 @@ typedef enum {
 typedef enum {
        PMINFO_INTERNAL_STORAGE = 0,            /**< Internal Storage*/
        PMINFO_EXTERNAL_STORAGE = 1,            /**< External Storage*/
+       PMINFO_EXTENDED_STORAGE = 2,            /**< Extended Storage*/
 } pkgmgrinfo_installed_storage;
 
 /**
@@ -447,6 +451,7 @@ typedef enum {
 typedef enum {
        INSTALL_INTERNAL = 0,           /**< Internal Installation*/
        INSTALL_EXTERNAL,               /**< External Installation*/
+       INSTALL_EXTENDED,               /**< Extended Installation*/
 } INSTALL_LOCATION;
 
 /**