7147bbec632a0c635d5274cc1a82ebcfb9f7afa1
[platform/core/security/security-manager.git] / src / server / common / connection-info.h
1 /*
2  *  Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *  Contact: Rafal Krypa <r.krypa@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        connection-info.h
20  * @author      Lukasz Kostyra (l.kostyra@partner.samsung.com)
21  * @version     1.0
22  * @brief       Definition of ConnectionInfo structure and ConnectionInfoMap type.
23  */
24
25 #ifndef _CONNECTION_INFO_H_
26 #define _CONNECTION_INFO_H_
27
28 #include <map>
29 #include <generic-socket-manager.h>
30 #include <message-buffer.h>
31
32 namespace SecurityManager
33 {
34     struct ConnectionInfo {
35         InterfaceID interfaceID;
36         MessageBuffer buffer;
37     };
38
39     typedef std::map<int, ConnectionInfo> ConnectionInfoMap;
40 } //namespace SecurityManager
41
42 #endif //_CONNECTION_INFO_H_