3 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 #ifndef __STORAGE_EXPERIMENTAL_H__
20 #define __STORAGE_EXPERIMENTAL_H__
28 * @addtogroup CAPI_SYSTEM_STORAGE_MODULE
34 #define STORAGE_ERROR_NO_DEVICE TIZEN_ERROR_NO_SUCH_DEVICE
37 * @brief Get the type and the kind of external device for given storage id.
41 * @param[in] storage_id The storage id
42 * @param[out] storage type (internal, external).
43 * @param[out] the kind of storage device for external type (sdcard, usb).
45 * @return @c 0 on success,
46 * otherwise a negative error value
48 * @retval #STORAGE_ERROR_NONE Successful
49 * @retval #STORAGE_ERROR_INVALID_PARAMETER Invalid parameter
50 * @retval #STORAGE_ERROR_OUT_OF_MEMORY Out of memory
51 * @retval #STORAGE_ERROR_NOT_SUPPORTED Storage not supported
52 * @retval #STORAGE_ERROR_NO_DEVICE No such device
54 int storage_get_type_dev(int storage_id, storage_type_e *type, storage_dev_e *dev);
63 #endif /* __STORAGE_EXPERIMENTAL_H__ */