Integrate some common codes from tota-ua
[platform/core/system/libtota.git] / ss_engine / fota_tar.h
1 /*
2  * libtota
3  *
4  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the License);
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19 #ifndef _FOTA_TAR_H_
20 #define _FOTA_TAR_H_
21
22 int tar_get_item_offset(char *tar, char *item);
23
24 int tar_get_item_size(char *tar, char *item);
25
26 int tar_get_cfg_data(char *tar, char *item, char *buf, int buflen);
27
28 int tar_get_folder_size(char *tar, char *item);
29
30 #endif                          /* _FOTA_TAR_H_ */