Fix a static analysis issue
[platform/core/appfw/pkgmgr-info.git] / include / pkgmgrinfo_type.h
index 62c5281..d427dda 100644 (file)
@@ -93,23 +93,24 @@ typedef enum {
 } pkgmgrinfo_cert_compare_result_type_e;
 
 typedef enum {
-       PMINFO_APPINFO_GET_LABEL = 0x0001,
-       PMINFO_APPINFO_GET_ICON = 0x0002,
-       PMINFO_APPINFO_GET_CATEGORY = 0x0004,
-       PMINFO_APPINFO_GET_APP_CONTROL = 0x0008,
-       PMINFO_APPINFO_GET_DATA_CONTROL = 0x0010,
+       PMINFO_APPINFO_GET_BASICINFO = 0x0001,
+       PMINFO_APPINFO_GET_LABEL = 0x0002,
+       PMINFO_APPINFO_GET_ICON = 0x0004,
+       PMINFO_APPINFO_GET_CATEGORY = 0x0008,
+       PMINFO_APPINFO_GET_APP_CONTROL = 0x0010,
        PMINFO_APPINFO_GET_METADATA = 0x0020,
        PMINFO_APPINFO_GET_SPLASH_SCREEN = 0x0040,
        PMINFO_APPINFO_GET_ALL = 0x007F
 } pkgmgrinfo_appinfo_get_option;
 
 typedef enum {
-       PMINFO_PKGINFO_GET_LABEL = 0x0001,
-       PMINFO_PKGINFO_GET_ICON = 0x0002,
-       PMINFO_PKGINFO_GET_AUTHOR = 0x0004,
-       PMINFO_PKGINFO_GET_DESCRIPTION = 0x0008,
-       PMINFO_PKGINFO_GET_PRIVILEGE = 0x0010,
-       PMINFO_PKGINFO_GET_ALL = 0x001F
+       PMINFO_PKGINFO_GET_BASICINFO = 0x0001,
+       PMINFO_PKGINFO_GET_LABEL = 0x0002,
+       PMINFO_PKGINFO_GET_ICON = 0x0004,
+       PMINFO_PKGINFO_GET_AUTHOR = 0x0008,
+       PMINFO_PKGINFO_GET_DESCRIPTION = 0x0010,
+       PMINFO_PKGINFO_GET_PRIVILEGE = 0x0020,
+       PMINFO_PKGINFO_GET_ALL = 0x003F
 } pkgmgrinfo_pkginfo_get_option;
 
 /**
@@ -290,21 +291,6 @@ 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)
- *
- * @brief Specifies the type of function passed to pkgmgrinfo_appinfo_foreach_category()
- *
- * @param[in] permission_name the name of the permission
- * @param[in] user_data user data passed to pkgmgrinfo_appinfo_foreach_category()
- *
- * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n
- *
- * @see  pkgmgrinfo_appinfo_foreach_category()
- */
-typedef 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_pkginfo_foreach_privilege()