PB-TNC messages implemented
[strongswan.git] / src / libcharon / plugins / tnccs_20 / messages / pb_access_recommendation_message.h
1 /*
2 * Copyright (C) 2010 Sansar Choinyambuu
3 * HSR Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 /**
17 * @defgroup pb_access_recommendation_message pb_access_recommendation_message
18 * @{ @ingroup tnccs_20
19 */
20
21 #ifndef PB_ACCESS_RECOMMENDATION_MESSAGE_H_
22 #define PB_ACCESS_RECOMMENDATION_MESSAGE_H_
23
24 #include "pb_tnc_message.h"
25
26 typedef struct pb_access_recommendation_message_t pb_access_recommendation_message_t;
27
28 /**
29 * Classs representing the PB-Access-Recommendation message type.
30 */
31 struct pb_access_recommendation_message_t {
32
33 /**
34 * PB-TNC Message interface
35 */
36 pb_tnc_message_t pb_interface;
37
38 /**
39 * Get PB Access Recommendation
40 *
41 * @return PB Access Recommendation
42 */
43 u_int16_t (*get_access_recommendation)(pb_access_recommendation_message_t *this);
44 };
45
46 /**
47 * Create a PB-Access-Recommendation message from parameters
48 *
49 * @param access_recommendation Access Recommendation code
50 */
51 pb_tnc_message_t* pb_access_recommendation_message_create(u_int16_t recommendation);
52
53 /**
54 * Create an unprocessed PB-Access-Recommendation message from raw data
55 *
56 * @param data PB-Access-Recommendation message data
57 */
58 pb_tnc_message_t* pb_access_recommendation_message_create_from_data(chunk_t data);
59
60 #endif /** PB_PA_MESSAGE_H_ @}*/