2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #ifndef __TIZEN_APPFW_STORAGE_PRIVATE_H__
19 #define __TIZEN_APPFW_STORAGE_PRIVATE_H__
28 typedef int (*storage_dev_get_state)(void);
29 typedef int (*storage_dev_set_state_cb)(void *data);
30 typedef void (*storage_dev_unset_state_cb)(void);
31 typedef int (*storage_dev_get_space)(unsigned long long *total, unsigned long long *available);
33 typedef struct storage_device_s
37 storage_dev_get_state get_state;
38 storage_dev_set_state_cb set_state_cb;
39 storage_dev_unset_state_cb unset_state_cb;
40 storage_dev_get_space get_space;
43 typedef struct storage_info_s
46 storage_device_h device;
47 storage_state_e state;
48 storage_state_changed_cb state_cb;
52 void storage_dispatch_state_event(storage_state_e state, void* data);
54 int storage_statfs(const char *directory, unsigned long long *total, unsigned long long *available);
60 #endif /* __TIZEN_APPFW_STORAGE_PRIVATE_H__ */