diff options
author | Martin Willi <martin@strongswan.org> | 2007-02-28 14:04:36 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-02-28 14:04:36 +0000 |
commit | c60c7694d2d8925c5d93ff33d132f561ad89e071 (patch) | |
tree | 9c7957b0749139c5e7c9b008c927e79d69f8e500 /src/charon/encoding/message.h | |
parent | a7a5e834e318d0582b6db979b63a5739c0a8244f (diff) | |
download | strongswan-c60c7694d2d8925c5d93ff33d132f561ad89e071.tar.bz2 strongswan-c60c7694d2d8925c5d93ff33d132f561ad89e071.tar.xz |
merged tasking branch into trunk
Diffstat (limited to 'src/charon/encoding/message.h')
-rw-r--r-- | src/charon/encoding/message.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/charon/encoding/message.h b/src/charon/encoding/message.h index dfb6d64af..73c2e05c6 100644 --- a/src/charon/encoding/message.h +++ b/src/charon/encoding/message.h @@ -184,6 +184,21 @@ struct message_t { void (*add_payload) (message_t *this, payload_t *payload); /** + * @brief Build a notify payload and add it to the message. + * + * This is a helper method to create notify messages or add + * notify payload to messages. The flush parameter specifies if existing + * payloads should get removed before appending the notify. + * + * @param this message_t object + * @param flush TRUE to remove existing payloads + * @param type type of the notify + * @param data a chunk of data to add to the notify, gets cloned + */ + void (*add_notify) (message_t *this, bool flush, notify_type_t type, + chunk_t data); + + /** * @brief Parses header of message. * * Begins parisng of a message created via message_create_from_packet(). @@ -304,6 +319,17 @@ struct message_t { iterator_t * (*get_payload_iterator) (message_t *this); /** + * @brief Find a payload of a spicific type. + * + * Returns the first occurance. + * + * @param this message_t object + * @param type type of the payload to find + * @return payload, or NULL if no such payload found + */ + payload_t* (*get_payload) (message_t *this, payload_type_t type); + + /** * @brief Returns a clone of the internal stored packet_t object. * * @param this message_t object |