e2f07ea35cc92368cbd12091e0cb2ab3b276b037
[platform/core/appfw/app-installers.git] / src / common / utils / manifest_util.h
1 // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMMON_UTILS_MANIFEST_UTIL_H_
6 #define COMMON_UTILS_MANIFEST_UTIL_H_
7
8 #include <pkgmgr-info.h>
9 #include <pkgmgr/pkgmgr_parser.h>
10
11 #include <boost/filesystem.hpp>
12 #include <string>
13
14 namespace bf = boost::filesystem;
15 namespace common_installer {
16
17 manifest_x* PkgmgrGenerateManifestInfoFromDB(const std::string& pkgid,
18                                              uid_t uid);
19
20 bf::path GetManifestLocation(const std::string& pkgid,
21                              uid_t uid,
22                              bool is_readonly);
23
24 }  // namespace common_installer
25
26 #endif  // COMMON_UTILS_MANIFEST_UTIL_H_