2 * Copyright (C) 2012 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
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>.
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
18 * @defgroup imv_reason_string_t imv_reason_string
19 * @{ @ingroup imv_reason_string
22 #ifndef IMV_REASON_STRING_H_
23 #define IMV_REASON_STRING_H_
25 #include "imv_lang_string.h"
28 #include <collections/linked_list.h>
30 typedef struct imv_reason_string_t imv_reason_string_t
;
33 * Defines and builds a TNC Reason String
35 struct imv_reason_string_t
{
38 * Add an individual remediation instruction to the string
40 * @param reason Multi-lingual reason string
42 void (*add_reason
)(imv_reason_string_t
*this, imv_lang_string_t reason
[]);
45 * Gets encoding of the reason string
47 * @return TNC reason string
49 chunk_t (*get_encoding
)(imv_reason_string_t
*this);
52 * Destroys an imv_reason_string_t object
54 void (*destroy
)(imv_reason_string_t
*this);
58 * Creates an Reason String object
60 * @param lang Preferred language
62 imv_reason_string_t
* imv_reason_string_create(char *lang
);
64 #endif /** IMV_REASON_STRING_H_ @}*/