2 * Copyright (C) 2011 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
17 * @defgroup ita_attr_commandt ita_attr_command
18 * @{ @ingroup ita_attr_command
21 #ifndef ITA_ATTR_COMMAND_H_
22 #define ITA_ATTR_COMMAND_H_
24 typedef struct ita_attr_command_t ita_attr_command_t
;
26 #include "pa_tnc/pa_tnc_attr.h"
28 #define ITA_ATTR_COMMAND 0x01
31 * Class implementing the ITA Command PA-TNC attribute.
34 struct ita_attr_command_t
{
37 * Public PA-TNC attribute interface
39 pa_tnc_attr_t pa_tnc_attribute
;
42 * Get the ITA command string
44 * @return ITA command string
46 char* (*get_command
)(ita_attr_command_t
*this);
50 * Creates an ita_attr_command_t object from a command string
52 * @param command ITA command string
54 pa_tnc_attr_t
* ita_attr_command_create(char *command
);
57 * Creates an ita_attr_command_t object from received data
59 * @param command ITA command string
61 pa_tnc_attr_t
* ita_attr_command_create_from_data(chunk_t value
);
63 #endif /** ITA_ATTR_COMMAND_H_ @}*/