Added add_segment() method to IETF attributes
[strongswan.git] / src / libimcv / plugins / imc_swid / imc_swid_state.h
1 /*
2 * Copyright (C) 2013 Andreas Steffen, HSR Hochschule fuer Technik Rapperswil
3 *
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>.
8 *
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
12 * for more details.
13 */
14
15 /**
16 * @defgroup imc_swid imc_swid
17 * @ingroup libimcv_plugins
18 *
19 * @defgroup imc_swid_state_t imc_swid_state
20 * @{ @ingroup imc_swid
21 */
22
23 #ifndef IMC_SWID_STATE_H_
24 #define IMC_SWID_STATE_H_
25
26 #include <imc/imc_state.h>
27 #include <library.h>
28
29 typedef struct imc_swid_state_t imc_swid_state_t;
30
31 /**
32 * Internal state of an imc_swid_t connection instance
33 */
34 struct imc_swid_state_t {
35
36 /**
37 * imc_state_t interface
38 */
39 imc_state_t interface;
40
41 /**
42 * Get Event ID Epoch
43 *
44 * @return Event ID Epoch
45 */
46 u_int32_t (*get_eid_epoch)(imc_swid_state_t *this);
47
48 };
49
50 /**
51 * Create an imc_swid_state_t instance
52 *
53 * @param id connection ID
54 */
55 imc_state_t* imc_swid_state_create(TNC_ConnectionID id);
56
57 #endif /** IMC_SWID_STATE_H_ @}*/