- spi_t replaced with u_int64_t

This commit is contained in:
Jan Hutter
2005-11-16 16:50:13 +00:00
parent a5e8260abf
commit 91443667d5
14 changed files with 145 additions and 40 deletions
+11
View File
@@ -777,6 +777,16 @@ static status_t parse_payload(private_parser_t *this, payload_type_t payload_typ
return SUCCESS;
}
/**
* implementation of parser_t.reset_context
*/
static status_t reset_context (private_parser_t *this)
{
this->byte_pos = this->input;
this->bit_pos = 0;
return SUCCESS;
}
/**
* implementation of parser_t.destroy
*/
@@ -811,6 +821,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 = (status_t(*)(parser_t*)) reset_context;
this->public.destroy = (status_t(*)(parser_t*)) destroy;