mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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>
This commit is contained in:
parent
9882bf5ff8
commit
a7e1e7fee1
3 changed files with 5 additions and 3 deletions
|
@ -33,7 +33,7 @@ typedef struct device_data_t
|
|||
} device_data_t;
|
||||
|
||||
const char *do_libdivecomputer_import(device_data_t *data);
|
||||
const char *do_uemis_import(const char *mountpath, short force_download);
|
||||
const char *do_uemis_import(device_data_t *data);
|
||||
|
||||
extern int import_thread_cancelled;
|
||||
extern const char *progress_bar_text;
|
||||
|
|
|
@ -477,7 +477,7 @@ void DownloadThread::run()
|
|||
const char *errorText;
|
||||
import_thread_cancelled = false;
|
||||
if (!strcmp(data->vendor, "Uemis"))
|
||||
errorText = do_uemis_import(data->devname, data->force_download);
|
||||
errorText = do_uemis_import(data);
|
||||
else
|
||||
errorText = do_libdivecomputer_import(data);
|
||||
if (errorText)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue