aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/encoding/message.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-11-02 14:30:45 +0100
committerMartin Willi <martin@revosec.ch>2011-01-05 16:45:41 +0100
commite6c6a4d304254cbba32af778a2edd34a16e83d23 (patch)
treecd09ec2ccb765deadcd2f61cebe0c8c8f2506b48 /src/libcharon/encoding/message.h
parent363ec8986cf497b75b23b9c99c2798476d555f58 (diff)
downloadstrongswan-e6c6a4d304254cbba32af778a2edd34a16e83d23.tar.bz2
strongswan-e6c6a4d304254cbba32af778a2edd34a16e83d23.tar.xz
Support removal of payloads from messages
Diffstat (limited to 'src/libcharon/encoding/message.h')
-rw-r--r--src/libcharon/encoding/message.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcharon/encoding/message.h b/src/libcharon/encoding/message.h
index 86c39ad7e..899ced24a 100644
--- a/src/libcharon/encoding/message.h
+++ b/src/libcharon/encoding/message.h
@@ -287,6 +287,13 @@ struct message_t {
enumerator_t * (*create_payload_enumerator) (message_t *this);
/**
+ * Remove the payload at the current enumerator position.
+ *
+ * @param enumerator enumerator created by create_payload_enumerator()
+ */
+ void (*remove_payload_at)(message_t *this, enumerator_t *enumerator);
+
+ /**
* Find a payload of a specific type.
*
* Returns the first occurance.