- introduced set_next_type call for payload_t objects

This commit is contained in:
Jan Hutter
2005-11-15 09:14:45 +00:00
parent 2b9dd4678d
commit 32cbc7bc82
9 changed files with 109 additions and 28 deletions
@@ -131,6 +131,15 @@ static payload_type_t get_next_type(private_transform_attribute_t *this)
return (NO_PAYLOAD);
}
/**
* 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;