- spi_t replaced with u_int64_t
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user