#include <debug.h>
#include <daemon.h>
-#include <threading/mutex.h>
#include <tnc/tncifimv_names.h>
+#include <tnc/imv/imv.h>
#include <tnc/imv/imv_recommendations.h>
typedef struct private_tnc_imv_recommendations_t private_tnc_imv_recommendations_t;
private_tnc_imv_recommendations_t *this;
recommendation_entry_t *entry;
enumerator_t *enumerator;
- TNC_IMVID id;
+ imv_t *imv;
INIT(this,
.public = {
);
enumerator = imv_list->create_enumerator(imv_list);
- while (enumerator->enumerate(enumerator, &id))
+ while (enumerator->enumerate(enumerator, &imv))
{
entry = malloc_thing(recommendation_entry_t);
- entry->id = id;
+ entry->id = imv->get_id(imv);
entry->rec = TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION;
entry->eval = TNC_IMV_EVALUATION_RESULT_DONT_KNOW;
this->recs->insert_last(this->recs, entry);