diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-12 06:57:32 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-12 07:34:46 -0400 |
commit | a7e1e7fee1c2afc61b37a0bea76032d169dcee7a (patch) | |
tree | 06b9ce2eca7e6e6e0c8ad89875bfff3e53a426cc /uemis-downloader.c | |
parent | 9882bf5ff8762ebe4741b6380c3ed1088027e5cc (diff) | |
download | subsurface-a7e1e7fee1c2afc61b37a0bea76032d169dcee7a.tar.gz |
Pass the whole 'device_data_t' to the uemis downloader
Not only does it make it look more like the libdivecomputer downloaders,
but the uemis downloader needs it in order to support all the flags we
have. Notably "download into private trip".
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 608d3c6ea..4e0545193 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -824,8 +824,10 @@ static char *uemis_get_divenr(char *deviceidstr) return strdup(divenr); } -const char *do_uemis_import(const char *mountpath, short force_download) +const char *do_uemis_import(device_data_t *data) { + const char *mountpath = data->devname; + short force_download = data->force_download; char *newmax = NULL; int start, end = -2, i, offset; uint32_t deviceidnr; |