added connection management to TNCCS manager
[strongswan.git] / src / libcharon / tnc / tnccs / tnccs_manager.h
index 2f4a961..40c3d0a 100644 (file)
@@ -22,6 +22,7 @@
 #define TNCCS_MANAGER_H_
 
 #include "tnccs.h"
+#include "tncif.h"
 
 typedef struct tnccs_manager_t tnccs_manager_t;
 
@@ -61,6 +62,21 @@ struct tnccs_manager_t {
                                                                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.
         */
        void (*destroy)(tnccs_manager_t *this);