implemented have_recommendation() based on a choice of 3 policies
This commit is contained in:
@@ -49,6 +49,13 @@ struct imv_manager_t {
|
||||
*/
|
||||
imv_t* (*remove)(imv_manager_t *this, TNC_IMVID id);
|
||||
|
||||
/**
|
||||
* Get the configured recommendation policy
|
||||
*
|
||||
* @return configured recommendation policy
|
||||
*/
|
||||
recommendation_policy_t (*get_recommendation_policy)(imv_manager_t *this);
|
||||
|
||||
/**
|
||||
* Create an empty set of IMV recommendations and evaluations
|
||||
*
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
|
||||
#include "imv_recommendations.h"
|
||||
|
||||
ENUM(recommendation_policy_names, RECOMMENDATION_POLICY_NONE,
|
||||
ENUM(recommendation_policy_names, RECOMMENDATION_POLICY_DEFAULT,
|
||||
RECOMMENDATION_POLICY_ALL,
|
||||
"none",
|
||||
"default",
|
||||
"any",
|
||||
"all"
|
||||
);
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
typedef enum recommendation_policy_t recommendation_policy_t;
|
||||
|
||||
enum recommendation_policy_t {
|
||||
RECOMMENDATION_POLICY_NONE,
|
||||
RECOMMENDATION_POLICY_DEFAULT,
|
||||
RECOMMENDATION_POLICY_ANY,
|
||||
RECOMMENDATION_POLICY_ALL
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user