assign provide_recommendation callback function

This commit is contained in:
Andreas Steffen
2010-11-09 20:43:51 +01:00
parent d599902a3a
commit d11c76bbd2
+3 -1
View File
@@ -158,13 +158,15 @@ METHOD(tnccs_manager_t, create_instance, tnccs_t*,
METHOD(tnccs_manager_t, create_connection, TNC_ConnectionID,
private_tnccs_manager_t *this, tnccs_t *tnccs,
tnccs_send_message_t send_message)
tnccs_send_message_t send_message,
tnccs_provide_recommendation_t provide_recommendation)
{
tnccs_connection_entry_t *entry = malloc_thing(tnccs_connection_entry_t);
entry->id = ++this->connection_id;
entry->tnccs = tnccs;
entry->send_message = send_message;
entry->provide_recommendation = provide_recommendation;
this->lock->write_lock(this->lock);
this->connections->insert_last(this->connections, entry);