044c6cbe9a6e0d5619f157a4ebdbf4a0b8bc190c
[platform/core/security/key-manager.git] / src / manager / common / connection-info.h
1 /*
2  *  Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *  Contact: Bumjin Im <bj.im@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@samsung.com)
21  * @author      Zofia Abramowska (z.abramowska@samsung.com)
22  * @version     1.0
23  * @brief       Definition of ConnectionInfo structure and ConnectionInfoMap type.
24  */
25
26 #ifndef _CONNECTION_INFO_H_
27 #define _CONNECTION_INFO_H_
28
29 #include <map>
30 #include <generic-socket-manager.h>
31 #include <message-buffer.h>
32
33 namespace CKM {
34 struct ConnectionInfo {
35         InterfaceID interfaceID;
36         MessageBuffer buffer;
37         Credentials credentials;
38         bool checkInProgress;
39 };
40
41 typedef std::map<int, ConnectionInfo> ConnectionInfoMap;
42 } //namespace CKM
43
44 #endif //_CONNECTION_INFO_H_