- implemented create and destroy function

This commit is contained in:
Jan Hutter committed 2005-11-08 09:47:17 +00:00
1 parent d75f797e25
commit ca6dd4f659
2 files changed
+82

No files matched your search

+28
View File
@@ -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_*/