Remove unnecessary security-server files
[platform/core/security/security-manager.git] / src / server / common / protocols.h
1 /*
2  *  Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *  Contact: Bartlomiej Grzelewski <b.grzelewski@samsung.com>
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  * @file        protocols.h
20  * @author      Bartlomiej Grzelewski (b.grzelewski@samsung.com)
21  * @version     1.0
22  * @brief       This file contains list of all protocols suported by security-sever.
23  */
24
25 #ifndef _SECURITY_SERVER_PROTOCOLS_
26 #define _SECURITY_SERVER_PROTOCOLS_
27
28 #include <vector>
29 #include <string>
30
31 struct app_inst_req {
32     std::string appId;
33     std::string pkgId;
34     std::vector<uid_t> allowedUsers;
35     std::vector<std::string> privileges;
36     std::vector<std::pair<std::string, int>> appPaths;
37 };
38
39 namespace SecurityServer {
40
41 extern char const * const SERVICE_SOCKET_INSTALLER;
42
43 enum class SecurityModuleCall
44 {
45     APP_INSTALL,
46     APP_UNINSTALL
47 };
48
49 } // namespace SecuritySever
50
51 #endif // _SECURITY_SERVER_PROTOCOLS_