Add a new installed storage type 26/135926/6
authorSangyoon Jang <jeremy.jang@samsung.com>
Tue, 27 Jun 2017 10:12:16 +0000 (19:12 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Fri, 21 Jul 2017 04:01:24 +0000 (04:01 +0000)
Change-Id: I5083b9e7d541d3e726bcb0b00d5ca1c5b911f5d1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
include/pkgmgrinfo_type.h
src/pkgmgrinfo_pkginfo.c

index d427dda..e138d14 100644 (file)
@@ -400,6 +400,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;
 
 /**
index a5b47d6..1ddc766 100644 (file)
@@ -1302,6 +1302,8 @@ API int pkgmgrinfo_pkginfo_get_installed_storage(pkgmgrinfo_pkginfo_h handle, pk
                *storage = PMINFO_INTERNAL_STORAGE;
        else if (strcmp(info->pkg_info->installed_storage, "installed_external") == 0)
                *storage = PMINFO_EXTERNAL_STORAGE;
+       else if (strcmp(info->pkg_info->installed_storage, "installed_extended") == 0)
+               *storage = PMINFO_EXTENDED_STORAGE;
        else
                return PMINFO_R_ERROR;