diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-18 23:42:17 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-24 09:51:37 -0700 |
commit | 8c65558b5c432c1d0e9c6af5939faa56ffecf51a (patch) | |
tree | b7ded4867685f70849d687d465c1653d3955b499 /core/file.h | |
parent | 255f561afffb26bae5c4de0c5fe2d60effb41103 (diff) | |
download | subsurface-8c65558b5c432c1d0e9c6af5939faa56ffecf51a.tar.gz |
devices: create device nodes in parsers
So far, we added a non-global device table to the parser states.
Now, create device nodes in that table instead of in the global
table. Thus, on undo of dive-import, the new device nodes will
be removed.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/file.h')
-rw-r--r-- | core/file.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/file.h b/core/file.h index e479cdaac..f0e001d34 100644 --- a/core/file.h +++ b/core/file.h @@ -23,7 +23,8 @@ extern "C" { #endif extern int try_to_open_cochran(const char *filename, struct memblock *mem, struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites); extern int try_to_open_liquivision(const char *filename, struct memblock *mem, struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites); -extern int datatrak_import(struct memblock *mem, struct memblock *wl_mem, struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites); +extern int datatrak_import(struct memblock *mem, struct memblock *wl_mem, struct dive_table *table, struct trip_table *trips, + struct dive_site_table *sites, struct device_table *devices); extern void ostctools_import(const char *file, struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites); extern int readfile(const char *filename, struct memblock *mem); |