implemented send_message() callback function
[strongswan.git] / src / libcharon / tnc / tnccs / tnccs.h
index 583512e..443e7e7 100644 (file)
 #ifndef TNCCS_H_
 #define TNCCS_H_
 
-typedef enum tnccs_type_t tnccs_type_t;
-
 #include <library.h>
 
+#include <tnc/tncif.h>
+
+typedef enum tnccs_type_t tnccs_type_t;
+
 /**
  * Type of TNC Client/Server protocol
  */
@@ -49,4 +51,16 @@ typedef struct tnccs_t tnccs_t;
  */
 typedef tnccs_t* (*tnccs_constructor_t)(bool is_server);
 
+/**
+ * Callback function adding a message to a TNCCS batch
+ *
+ * @param message              message to be added
+ * @param message_len  message length
+ * @param message_type message type
+ */
+typedef void (*tnccs_send_message_t)(tnccs_t* tncss,
+                                                                        TNC_BufferReference message,
+                                                                        TNC_UInt32 message_len,
+                                                                        TNC_MessageType message_type);
+
 #endif /** TNC_H_ @}*/