2 * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __TAC_COMMON_H__
18 #define __TAC_COMMON_H__
24 TAC_ERROR_INVALID_PARAMETER = -1,
25 TAC_ERROR_ALREADY_EXIST = -2,
26 TAC_ERROR_NO_SUCH_FILE = -3,
27 TAC_ERROR_INVALID_PACKAGE = -4,
28 TAC_ERROR_NOT_SUPPORTED = -5,
29 TAC_ERROR_UNKNOWN = -9
33 * @brief restore database of TAC
36 tac_error_e tac_restoreDB();
39 * @brief disable tac feature.
40 * @param[in] pkgId package ID
43 tac_error_e disableTACPackage(const std::string& pkgId);
46 * @brief enable tac feature.
47 * @param[in] pkgId package ID
50 tac_error_e enableTACPackage(const std::string& pkgId);
53 * @brief .deps.json file parser
54 * @param[in] root path
55 * @param[in] exec name
56 * @return std::vector<std::string> parser data
58 std::vector<std::string> depsJsonParser(const std::string& rootPath, const std::string& execName);
61 * @brief get library info in application
62 * @param[in] root path
63 * @return std::vector<std::string> filepath and sha256 value
65 std::vector<std::string> getLibrariesInfo(const std::string& rootPath);
68 * @brief restore database of TLC
71 tac_error_e tlc_restoreDB();
73 #endif /* __TAC_COMMON_H__ */