2 * Copyright (C) 2011 Andreas Steffen, HSR Hochschule fuer Technik Rapperswil
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 * @defgroup imc_state_t imc_state
18 * @{ @ingroup imc_state
24 #include <tnc/tncif.h>
27 typedef struct imc_state_t imc_state_t
;
30 * Internal state of an IMC connection instance
35 * Get the TNCS connection ID attached to the state
37 * @return TNCS connection ID of the state
39 TNC_ConnectionID (*get_connection_id
)(imc_state_t
*this);
42 * Change the connection state
44 * @param new_state new connection state
46 void (*change_state
)(imc_state_t
*this, TNC_ConnectionState new_state
);
49 * Destroys an imc_state_t object
51 void (*destroy
)(imc_state_t
*this);
54 #endif /** IMC_STATE_H_ @}*/