added connection management to TNCCS manager

This commit is contained in:
Andreas Steffen
2010-11-09 20:43:50 +01:00
parent fe5ce8f3a2
commit e7da87f942
2 changed files with 88 additions and 2 deletions
+16
View File
@@ -22,6 +22,7 @@
#define TNCCS_MANAGER_H_
#include "tnccs.h"
#include "tncif.h"
typedef struct tnccs_manager_t tnccs_manager_t;
@@ -60,6 +61,21 @@ struct tnccs_manager_t {
tnccs_t* (*create_instance)(tnccs_manager_t *this, tnccs_type_t type,
bool is_server);
/**
* Create a TNCCS connection and assign a unique connection ID
*
* @param tnccs TNCCS connection instance
* @result assigned connection ID
*/
TNC_ConnectionID (*create_connection)(tnccs_manager_t *this, tnccs_t *tnccs);
/**
* Remove a TNCCS connection using its connection ID.
*
* @param id connection ID of the connection to be removed
*/
void (*remove_connection)(tnccs_manager_t *this, TNC_ConnectionID id);
/**
* Destroy a tnccs_manager instance.
*/