code of message_t cleaned and added more logs

This commit is contained in:
Jan Hutter committed 2005-11-30 12:58:57 +00:00
1 parent bc7883029a
commit f603933427
6 files changed
+260 -110

No files matched your search

+10
View File
@@ -903,6 +903,15 @@ static status_t parse_payload(private_parser_t *this, payload_type_t payload_typ
return SUCCESS;
}
/**
* Implementation of parser_t.get_remaining_byte_count.
*/
static int get_remaining_byte_count (private_parser_t *this)
{
int count = (this->input_roof - this->byte_pos);
return count;
}
/**
* Implementation of parser_t.reset_context.
*/
@@ -932,6 +941,7 @@ parser_t *parser_create(chunk_t data)
this->public.parse_payload = (status_t(*)(parser_t*,payload_type_t,payload_t**)) parse_payload;
this->public.reset_context = (void(*)(parser_t*)) reset_context;
this->public.get_remaining_byte_count = (int (*) (parser_t *))get_remaining_byte_count;
this->public.destroy = (void(*)(parser_t*)) destroy;