diff options
author | Anton Lundin <glance@acc.umu.se> | 2016-12-29 15:41:44 +0100 |
---|---|---|
committer | Subsurface <dirk@subsurface-divelog.org> | 2017-01-12 14:15:53 -0800 |
commit | 70e2404492bb6fd19bd865985e1622260e2d7e54 (patch) | |
tree | 99cb933c7b32742919a4c4feb3af19f3fb135b4a /core/ostctools.c | |
parent | d11dfd2f45fbf0a036d3e2089ff86a0ada43f2e0 (diff) | |
download | subsurface-70e2404492bb6fd19bd865985e1622260e2d7e54.tar.gz |
Stop accessing the internals of dc_descriptor_t
This removes our own declaration of dc_descriptor_t and all our accesses
to its internals, and switches to use the libdivecomputer functions to
access those instead.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Diffstat (limited to 'core/ostctools.c')
-rw-r--r-- | core/ostctools.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ostctools.c b/core/ostctools.c index caf7dc2fc..c3fb66c64 100644 --- a/core/ostctools.c +++ b/core/ostctools.c @@ -20,8 +20,8 @@ static int ostc_prepare_data(int data_model, dc_family_t dc_fam, device_data_t * data_descriptor = get_descriptor(dc_fam, data_model); if (data_descriptor) { dev_data->descriptor = data_descriptor; - dev_data->vendor = copy_string(data_descriptor->vendor); - dev_data->model = copy_string(data_descriptor->product); + dev_data->vendor = copy_string(dc_descriptor_get_vendor(data_descriptor)); + dev_data->model = copy_string(dc_descriptor_get_product(data_descriptor)); } else { return 0; } |