The extended storage feature is introduced, this patch adds enum
variable for getting extended storage type, requesting for moving package
to extended storage.
Change-Id: Ic0ecb746a1ce53d57a77804e4eb954445b24394c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
typedef enum {
PACKAGE_INFO_INTERNAL_STORAGE = 0, /**< Internal storage */
PACKAGE_INFO_EXTERNAL_STORAGE = 1, /**< External storage */
+ PACKAGE_INFO_EXTENDED_STORAGE = 2, /**< Extended storage (Since 5.0) */
} package_info_installed_storage_type_e;
typedef enum {
PACKAGE_MANAGER_REQUEST_MOVE_TO_INTERNAL = 0, /**< Internal type */
PACKAGE_MANAGER_REQUEST_MOVE_TO_EXTERNAL, /**< External type */
+ PACKAGE_MANAGER_REQUEST_MOVE_TO_EXTENDED, /**< Extended type (Since 5.0) */
/* These enum will be deprecated. Use above enum instead. */
PACAKGE_MANAGER_REQUEST_MOVE_TO_INTERNAL = 0,
*storage = PACKAGE_INFO_INTERNAL_STORAGE;
else if (pkg_info_value == PMINFO_EXTERNAL_STORAGE)
*storage = PACKAGE_INFO_EXTERNAL_STORAGE;
+ else if (pkg_info_value == PMINFO_EXTENDED_STORAGE)
+ *storage = PACKAGE_INFO_EXTENDED_STORAGE;
+ else
+ return package_manager_error(PACKAGE_MANAGER_ERROR_IO_ERROR, __FUNCTION__, NULL);
+
return PACKAGE_MANAGER_ERROR_NONE;
}