Tizen 2.1 base
[platform/core/system/sync-agent.git] / src / framework / fsapi / operation_internal.h
1 /*
2  * sync-agent
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 #ifndef OPERATION_INTERNAL_H_
19 #define OPERATION_INTERNAL_H_
20
21 /**
22  * @file operation_internal.h
23  * @brief Provides file system related operations such as file/folder create, delete, read, write and etc.
24  */
25
26 /** @addtogroup fsapi
27  *      @{
28  */
29
30 /**
31  * @brief Provides date information of your file in character stream
32  * @remarks The return char stream format is "Y:m:d H:M:S".
33  * The Date info stream should be freed when no more in use.
34  * @param[in] file_name File path you want to check
35  * @param[out] time_string Double pointer of the char variable you want to load file date info on
36  * @return 1 on success, otherwise 0
37  */
38 int fs_get_file_date(const char *file_name, char **time_string);
39
40 /**
41  * @brief Provides MD5 hash extraction
42  * @param[in] file_path File path to extract MD5 hash
43  * @param[out] hash_key Char variable to load MD5 hash on
44  * @return 1 on success, otherwise 0
45  */
46 int fs_file_md5_hashkey(const char *file_path, unsigned char **hash_key);
47
48 /**
49  *      @}
50  */
51
52 #endif                          /* OPERATION_INTERNAL_H_ */