diff options
| author | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-11-06 20:13:41 +0100 |
|---|---|---|
| committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-11-09 20:43:50 +0100 |
| commit | 2a647d5d50262e4a12d727a3489a51f4f4fa742a (patch) | |
| tree | 540cdd651d455a3f6937623986885e6333a3cbb3 /src/libcharon/tnc/tnccs/tnccs.h | |
| parent | b25633314e1ba521d5b5367e38648b6e510859f4 (diff) | |
| download | strongswan-2a647d5d50262e4a12d727a3489a51f4f4fa742a.tar.bz2 strongswan-2a647d5d50262e4a12d727a3489a51f4f4fa742a.tar.xz | |
implemented send_message() callback function
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_ @}*/ |
