- 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
@@ -212,6 +212,15 @@ static bool get_is_last_transform (private_transform_substructure_t *this)
return ((this->next_payload == TRANSFORM_TYPE_VALUE) ? FALSE : TRUE);
}
/**
* Implements payload_t's set_next_type function.
* See #payload_s.set_next_type for description.
*/
static status_t set_next_type(private_transform_substructure_t *this,payload_type_t type)
{
return SUCCESS;
}
/**
* Implements transform_substructure_t's set_transform_type function.
* See #transform_substructure_s.set_transform_type for description.
@@ -271,6 +280,8 @@ static status_t compute_length (private_transform_substructure_t *this)
length += current_attribute->get_length(current_attribute);
}
iterator->destroy(iterator);
this->transform_length = length;
return SUCCESS;
}
@@ -289,6 +300,7 @@ transform_substructure_t *transform_substructure_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.create_transform_attribute_iterator = (status_t (*) (transform_substructure_t *,linked_list_iterator_t **,bool)) create_transform_attribute_iterator;