updated boilerplate
[framework/uifw/cbhm.git] / src / storage.h
1 /*
2  * Copyright (c) 2011 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
18 #ifndef _storage_h_
19 #define _storage_h_
20
21 #include <sys/types.h>
22 #include <sys/stat.h>
23 #include <fcntl.h>
24 #include <sys/mman.h>
25
26 int init_storage(void *data);
27 int sync_storage(void *data);
28 unsigned int get_storage_serial_code(void *data);
29 int adding_item_to_storage(void *data, int pos, char *idata);
30 int get_item_counts(void *data);
31 int close_storage(void *data);
32
33 int check_regular_file(char *path);
34
35 #endif // _storage_h_