2 * Copyright 2013 Samsung Electronics Co., Ltd
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
8 * http://floralicense.org/license/
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.
20 #ifndef __MF_FO_INTERNAL_H_DEF__
21 #define __MF_FO_INTERNAL_H_DEF__
24 #include <sys/types.h>
25 #include "mf-fo-common.h"
28 typedef void (*_mf_fo_msg_cb) (mf_msg_type msg_type, const char *real, unsigned long long size, int error_code, void *data);
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);
36 int _mf_fo_errno_to_mferr(int err_no);
37 void _mf_fo_free_directory_hierarchies(GSList **glist);