blob: 65e3e880ddb0724083c8ba111841a8e9a44ad217 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/*
* Copyright (C) 2010 Sansar Choinyambuu
* HSR Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*/
/**
* @defgroup pb_reason_string_msg pb_reason_string_msg
* @{ @ingroup tnccs_20
*/
#ifndef PB_REASON_STRING_MSG_H_
#define PB_REASON_STRING_MSG_H_
typedef struct pb_reason_string_msg_t pb_reason_string_msg_t;
#include "messages/pb_tnc_msg.h"
/**
* Class representing the PB-Reason-String message type.
*/
struct pb_reason_string_msg_t {
/**
* PB-TNC Message interface
*/
pb_tnc_msg_t pb_interface;
/**
* Get Reason String
*
* @return Reason string
*/
chunk_t (*get_reason_string)(pb_reason_string_msg_t *this);
/**
* Get Reason String Language Code
*
* @return Language code
*/
chunk_t (*get_language_code)(pb_reason_string_msg_t *this);
};
/**
* Create a PB-Reason-String message from parameters
*
* @param reason_string Reason string
* @param language_code Language code
*/
pb_tnc_msg_t* pb_reason_string_msg_create(chunk_t reason_string,
chunk_t language_code);
/**
* Create an unprocessed PB-Reason-String message from raw data
*
* @param data PB-Reason-String message data
*/
pb_tnc_msg_t* pb_reason_string_msg_create_from_data(chunk_t data);
#endif /** PB_PA_MSG_H_ @}*/
|