Remove 'format-truncation' warning for GCC-9
[platform/core/system/libstorage.git] / src / storage-external.h
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __STORAGE_EXTERNAL_H__
18 #define __STORAGE_EXTERNAL_H__
19
20 #include <stdio.h>
21 #include "common.h"
22 #include "storage-external-dbus.h"
23
24 int storage_ext_get_space(int storage_id,
25                 unsigned long long *total, unsigned long long *available);
26 int storage_ext_foreach_device_list(storage_device_supported_cb callback, void *user_data);
27 int storage_ext_register_cb(enum storage_cb_type type, struct storage_cb_info *info);
28 int storage_ext_unregister_cb(enum storage_cb_type type, struct storage_cb_info *info);
29 int storage_ext_get_root(int storage_id, char *path, size_t len, bool *extendedinternal);
30 int storage_ext_get_state(int storage_id, storage_state_e *state);
31 int storage_ext_get_primary_mmc_path(char *path, size_t len);
32
33 #endif /* __STORAGE_EXTERNAL_H__ */