diff options
Diffstat (limited to 'src/libcharon/tnc/tnccs/tnccs.h')
-rw-r--r-- | src/libcharon/tnc/tnccs/tnccs.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/libcharon/tnc/tnccs/tnccs.h b/src/libcharon/tnc/tnccs/tnccs.h index 583512e82..443e7e7d8 100644 --- a/src/libcharon/tnc/tnccs/tnccs.h +++ b/src/libcharon/tnc/tnccs/tnccs.h @@ -21,10 +21,12 @@ #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_ @}*/ |