Tizen 2.0 Release
[apps/core/preloaded/myfiles.git] / src / include / mf-fo-internal.h
1 /*
2  * Copyright 2013         Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.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://floralicense.org/license/
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
18
19
20 #ifndef __MF_FO_INTERNAL_H_DEF__
21 #define __MF_FO_INTERNAL_H_DEF__
22
23 #include <stdbool.h>
24 #include <sys/types.h>
25 #include "mf-fo-common.h"
26 #include "mf-util.h"
27
28 typedef void (*_mf_fo_msg_cb) (mf_msg_type msg_type, const char *real, unsigned long long size, int error_code, void *data);
29
30 inline bool _mf_fo_check_exist(const char *path);
31 char *_mf_fo_get_next_unique_dirname(const char *name, int *errcode);
32 char *_mf_fo_get_next_unique_filename(const char *name, int *errcode);
33 int _mf_fo_get_total_item_size(const char *item, unsigned long long *size);
34 int _mf_fo_get_remain_space(const char *path, unsigned long long *size);
35
36 int _mf_fo_errno_to_mferr(int err_no);
37 void _mf_fo_free_directory_hierarchies(GSList **glist);
38
39 #endif