aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/payloads/transform_attribute.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-15 09:14:45 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-15 09:14:45 +0000
commit32cbc7bc8204266300bf44a96734d40827f550ae (patch)
treebcbc80f71becce2ab2446875876ed727a3a3254a /Source/charon/payloads/transform_attribute.c
parent2b9dd4678da72005642b0c5494ae63d6ad8a8a32 (diff)
downloadstrongswan-32cbc7bc8204266300bf44a96734d40827f550ae.tar.bz2
strongswan-32cbc7bc8204266300bf44a96734d40827f550ae.tar.xz
- introduced set_next_type call for payload_t objects
Diffstat (limited to 'Source/charon/payloads/transform_attribute.c')
-rw-r--r--Source/charon/payloads/transform_attribute.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/charon/payloads/transform_attribute.c b/Source/charon/payloads/transform_attribute.c
index b3128e82e..3dc714e78 100644
--- a/Source/charon/payloads/transform_attribute.c
+++ b/Source/charon/payloads/transform_attribute.c
@@ -132,6 +132,15 @@ static payload_type_t get_next_type(private_transform_attribute_t *this)
}
/**
+ * Implements payload_t's set_next_type function.
+ * See #payload_s.set_next_type for description.
+ */
+static status_t set_next_type(private_transform_attribute_t *this,payload_type_t type)
+{
+ return SUCCESS;
+}
+
+/**
* Implements payload_t's get_length function.
* See #payload_s.get_length for description.
*/
@@ -233,6 +242,7 @@ transform_attribute_t *transform_attribute_create()
this->public.payload_interface.get_encoding_rules = (status_t (*) (payload_t *, encoding_rule_t **, size_t *) ) get_encoding_rules;
this->public.payload_interface.get_length = (size_t (*) (payload_t *)) get_length;
this->public.payload_interface.get_next_type = (payload_type_t (*) (payload_t *)) get_next_type;
+ this->public.payload_interface.set_next_type = (status_t (*) (payload_t *,payload_type_t)) set_next_type;
this->public.payload_interface.get_type = (payload_type_t (*) (payload_t *)) get_type;
this->public.payload_interface.destroy = (status_t (*) (payload_t *))destroy;
this->public.set_value = (status_t (*) (transform_attribute_t *,chunk_t value)) set_value;