Move storage_get_type_dev to storage-experimental.h 10/101710/3 accepted/tizen/3.0/common/20161205.091631 accepted/tizen/3.0/ivi/20161204.233806 accepted/tizen/3.0/mobile/20161204.233755 accepted/tizen/3.0/tv/20161204.233801 accepted/tizen/3.0/wearable/20161204.233804
authorpr.jung <pr.jung@samsung.com>
Fri, 2 Dec 2016 04:58:12 +0000 (13:58 +0900)
committerpr.jung <pr.jung@samsung.com>
Fri, 2 Dec 2016 05:11:13 +0000 (14:11 +0900)
Change-Id: I74de7cc20ab4098a5f89f4cf1cd7b85ac5e9de01
Signed-off-by: pr.jung <pr.jung@samsung.com>
include/storage-experimental.h [new file with mode: 0644]
include/storage-internal.h
src/storage-inhouse.c

diff --git a/include/storage-experimental.h b/include/storage-experimental.h
new file mode 100644 (file)
index 0000000..65f11e1
--- /dev/null
@@ -0,0 +1,63 @@
+/*
+ * storage
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+#ifndef __STORAGE_EXPERIMENTAL_H__
+#define __STORAGE_EXPERIMENTAL_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/**
+ * @addtogroup CAPI_SYSTEM_STORAGE_MODULE
+ * @{
+ */
+
+#include <tizen.h>
+
+#define STORAGE_ERROR_NO_DEVICE TIZEN_ERROR_NO_SUCH_DEVICE
+
+/**
+ * @brief Get the type and the kind of external device for given storage id.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] storage_id The storage id
+ * @param[out] storage type (internal, external).
+ * @param[out] the kind of storage device for external type (sdcard, usb).
+ *
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ *
+ * @retval #STORAGE_ERROR_NONE               Successful
+ * @retval #STORAGE_ERROR_INVALID_PARAMETER  Invalid parameter
+ * @retval #STORAGE_ERROR_OUT_OF_MEMORY      Out of memory
+ * @retval #STORAGE_ERROR_NOT_SUPPORTED      Storage not supported
+ * @retval #STORAGE_ERROR_NO_DEVICE          No such device
+ */
+int storage_get_type_dev(int storage_id, storage_type_e *type, storage_dev_e *dev);
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __STORAGE_EXPERIMENTAL_H__ */
index 14e81cb..391a721 100644 (file)
@@ -53,26 +53,6 @@ extern "C" {
  */
 int storage_get_primary_sdcard(int *storage_id, char **path);
 
-/**
- * @brief Get the type and the kind of external device for given storage id.
- *
- * @since_tizen 3.0
- *
- * @param[in] storage_id The storage id
- * @param[out] storage type (internal, external).
- * @param[out] the kind of storage device for external type (sdcard, usb).
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #STORAGE_ERROR_NONE               Successful
- * @retval #STORAGE_ERROR_INVALID_PARAMETER  Invalid parameter
- * @retval #STORAGE_ERROR_OUT_OF_MEMORY      Out of memory
- * @retval #STORAGE_ERROR_NOT_SUPPORTED      Storage not supported
- * @retval #STORAGE_ERROR_NO_DEVICE          No such device
- */
-int storage_get_type_dev(int storage_id, storage_type_e *type, storage_dev_e *dev);
-
 int storage_get_compat_internal_path(const char* origin, int len, char* compat);
 int storage_get_origin_internal_path(const char* compat, int len, char* origin);
 
index 23ebb18..37fa5a0 100755 (executable)
@@ -26,6 +26,7 @@
 #include "log.h"
 #include "storage-internal.h"
 #include "storage-external-dbus.h"
+#include "storage-experimental.h"
 
 /*
        Get compat path from origin Multi-user path