external: add function to get type 30/67730/3
authorTaeyoung Kim <ty317.kim@samsung.com>
Thu, 28 Apr 2016 06:54:36 +0000 (15:54 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Fri, 29 Apr 2016 01:27:42 +0000 (18:27 -0700)
- If a storage is not the one of internal storages,
  it is external storage.

Change-Id: Idd2e4bac3c398c91ccb0f3b2891a143c9fa95100
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
src/storage.c

index 3e372a8..7f56f52 100644 (file)
@@ -198,6 +198,7 @@ API int storage_get_type(int storage_id, storage_type_e *type)
        }
 
        /* external storage */
+       *type = STORAGE_TYPE_EXTERNAL;
 
        return STORAGE_ERROR_NONE;
 }