Update for new libdivecomputer interfaces

For this you need to get the current libdivecomputer tree, reconfigure,
build and install it first.  But this cleans up some of the silly error
handling too, and has just a single "dc_device_close()" call etc, rather
than duplicating that (and the new dc_context_free()).

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2012-08-27 15:06:58 -07:00
parent d96b504bc4
commit a44d0049f6
2 changed files with 30 additions and 25 deletions

View file

@ -15,6 +15,7 @@ typedef struct device_data_t {
dc_descriptor_t *descriptor;
const char *vendor, *product, *devname;
dc_device_t *device;
dc_context_t *context;
progressbar_t progress;
int preexisting;
} device_data_t;