Rename the frog parameter and field to hwos.
The frog parameter and field are not only used for the Frog, but also for all hwOS based models. Therefore, using the more generic hwos as the name is more meaningful.
This commit is contained in:
parent
ad2257569c
commit
29caab0673
@ -65,7 +65,7 @@ dc_status_t
|
||||
hw_ostc_extract_dives (dc_device_t *device, const unsigned char data[], unsigned int size, dc_dive_callback_t callback, void *userdata);
|
||||
|
||||
dc_status_t
|
||||
hw_ostc_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int frog);
|
||||
hw_ostc_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int hwos);
|
||||
|
||||
dc_status_t
|
||||
hw_ostc_device_fwupdate (dc_device_t *abstract, const char *filename);
|
||||
|
||||
@ -83,7 +83,7 @@ typedef struct hw_ostc_gasmix_t {
|
||||
|
||||
typedef struct hw_ostc_parser_t {
|
||||
dc_parser_t base;
|
||||
unsigned int frog;
|
||||
unsigned int hwos;
|
||||
// Cached fields.
|
||||
unsigned int cached;
|
||||
unsigned int version;
|
||||
@ -181,7 +181,7 @@ hw_ostc_parser_cache (hw_ostc_parser_t *parser)
|
||||
}
|
||||
|
||||
// Check the profile version
|
||||
unsigned int version = data[parser->frog ? 8 : 2];
|
||||
unsigned int version = data[parser->hwos ? 8 : 2];
|
||||
const hw_ostc_layout_t *layout = NULL;
|
||||
unsigned int header = 0;
|
||||
switch (version) {
|
||||
@ -267,7 +267,7 @@ hw_ostc_parser_cache (hw_ostc_parser_t *parser)
|
||||
}
|
||||
|
||||
dc_status_t
|
||||
hw_ostc_parser_create (dc_parser_t **out, dc_context_t *context, unsigned int frog)
|
||||
hw_ostc_parser_create (dc_parser_t **out, dc_context_t *context, unsigned int hwos)
|
||||
{
|
||||
hw_ostc_parser_t *parser = NULL;
|
||||
|
||||
@ -282,7 +282,7 @@ hw_ostc_parser_create (dc_parser_t **out, dc_context_t *context, unsigned int fr
|
||||
}
|
||||
|
||||
// Set the default values.
|
||||
parser->frog = frog;
|
||||
parser->hwos = hwos;
|
||||
parser->cached = 0;
|
||||
parser->version = 0;
|
||||
parser->header = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user