daf618b659b53299495a92e73ccd88e700178e83
[strongswan.git] / src / libcharon / tnc / imv / imv_recommendations.h
1 /*
2 * Copyright (C) 2010 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
4 *
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>.
9 *
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
13 * for more details.
14 */
15
16 /**
17 * @defgroup imv_recommendations imv_recommendations
18 * @{ @ingroup libcharon
19 */
20
21 #ifndef IMV_RECOMMENDATIONS_H_
22 #define IMV_RECOMMENDATIONS_H_
23
24 #include <tnc/tncifimv.h>
25 #include <library.h>
26
27 typedef struct recommendations_t recommendations_t;
28
29 /**
30 * Collection of all IMV action recommendations and evaluation results
31 */
32 struct recommendations_t {
33
34 /**
35 * Deliver an IMV action recommendation and IMV evaluation result to the TNCS
36 *
37 * @param imv_id ID of the IMV providing the recommendation
38 * @param recommendation action recommendation
39 * @param evaluation evaluation result
40 */
41 TNC_Result (*provide_recommendation)(recommendations_t *this,
42 TNC_IMVID imv_id,
43 TNC_IMV_Action_Recommendation rec,
44 TNC_IMV_Evaluation_Result eval);
45
46 bool (*have_recommendation)(recommendations_t *this,
47 TNC_IMV_Action_Recommendation *rec,
48 TNC_IMV_Evaluation_Result *eval);
49
50 /**
51 * Destroys an imv_t object.
52 */
53 void (*destroy)(recommendations_t *this);
54 };
55
56 #endif /** IMV_RECOMMENDATIONS_H_ @}*/