change boilerplate(SLP)
[framework/uifw/cbhm.git] / src / storage.h
1 /*
2  * Copyright (c) 2009 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of
7  * SAMSUNG ELECTRONICS ("Confidential Information"). You agree and
8  * acknowledge that this software is owned by Samsung and you shall
9  * not disclose such Confidential Information and shall use it only
10  * in accordance with the terms of the license agreement you entered
11  * into with SAMSUNG ELECTRONICS.  SAMSUNG make no representations
12  * or warranties about the suitability of the software, either express
13  * or implied, including but not limited to the implied warranties of
14  * merchantability, fitness for a particular purpose, or non-infringement.
15  * SAMSUNG shall not be liable for any damages suffered by
16  * licensee arising out of or releated to this software.
17  */
18
19 #ifndef _storage_h_
20 #define _storage_h_
21
22 #include <sys/types.h>
23 #include <sys/stat.h>
24 #include <fcntl.h>
25 #include <sys/mman.h>
26
27 int init_storage(void *data);
28 int sync_storage(void *data);
29 unsigned int get_storage_serial_code(void *data);
30 int adding_item_to_storage(void *data, int pos, char *idata);
31 int get_item_counts(void *data);
32 int close_storage(void *data);
33
34 int check_regular_file(char *path);
35
36 #endif // _storage_h_