Revert "Proper native implementation for directory creator tool"
[platform/core/appfw/app-installers.git] / src / common / security_registration.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_SECURITY_REGISTRATION_H_
6 #define COMMON_SECURITY_REGISTRATION_H_
7
8 #include <boost/filesystem/path.hpp>
9
10 #include <sys/types.h>
11
12 #include <string>
13
14 #include "common/installer_context.h"
15
16 namespace common_installer {
17
18 /**
19  * Adapter interface for external Security module.
20  *
21  * Adapter interface for external Security module used for registering
22  * application to security context
23  *
24  * \param pkg_id pkdid of given package
25  * \param path path of installed package
26  * \param manifest pointer to manifest structure
27  *
28  * \return true if success
29  */
30 bool RegisterSecurityContextForApps(const std::string& pkg_id,
31     const boost::filesystem::path& path, manifest_x* manifest);
32
33 /**
34  * Adapter interface for external Security module.
35  *
36  * Adapter interface for external Security module used for unregistering
37  * application from security context
38  *
39  * \param pkg_id pkdid of given package
40  * \param manifest pointer to manifest structure
41  *
42  * \return true if success
43  */
44 bool UnregisterSecurityContextForApps(const std::string& pkg_id,
45     manifest_x* manifest);
46
47 }  // namespace common_installer
48
49 #endif  // COMMON_SECURITY_REGISTRATION_H_