diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-08 09:47:17 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-08 09:47:17 +0000 |
commit | ca6dd4f659df3f8c528b0d56e90cff219da663ba (patch) | |
tree | 03a1ef268644bd419b8fa5329216253da1ca39f7 /Source/charon/message.h | |
parent | d75f797e25e866344f8154c9545fe154e197a7f8 (diff) | |
download | strongswan-ca6dd4f659df3f8c528b0d56e90cff219da663ba.tar.bz2 strongswan-ca6dd4f659df3f8c528b0d56e90cff219da663ba.tar.xz |
- implemented create and destroy function
Diffstat (limited to 'Source/charon/message.h')
-rw-r--r-- | Source/charon/message.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/charon/message.h b/Source/charon/message.h index 0ac72212f..d511b27f6 100644 --- a/Source/charon/message.h +++ b/Source/charon/message.h @@ -23,4 +23,32 @@ #ifndef MESSAGE_H_ #define MESSAGE_H_ +#include "types.h" + +/** + * @brief This class is used to represent an IKEv2-Message. + * + * An IKEv2-Message is either a request or response. + */ +typedef struct message_s message_t; + +struct message_s { + + /** + * @brief Destroys a message object + * + * @param this message_t object + * @return SUCCESSFUL if succeeded, FAILED otherwise + */ + status_t (*destroy) (message_t *this); +}; + +/** + * Creates an message_t-object + * + * @return created message_t object + */ +message_t * message_create(); + + #endif /*MESSAGE_H_*/ |