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 3e372a8ea8f1e1fca5a2ce9918352706c4ac9c6b..7f56f52b1866d036b858ac03a0a09f7d83ef9f16 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;
 }