aboutsummaryrefslogtreecommitdiffstats
path: root/core/file.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-11-27 00:25:15 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-09 20:58:04 -0800
commit7e33369dc8b27b20385ab055b662e06bbf369784 (patch)
treeaf674ccdd1ccb67d4de84d68cb585b481d020fb3 /core/file.h
parentec37c71f5eeb7d4b0c4b8719b52583fadb0b8f4c (diff)
downloadsubsurface-7e33369dc8b27b20385ab055b662e06bbf369784.tar.gz
Parser: add trip_table parameter to parsing functions
To allow parsing into arbitrary trip_tables, add the corresponding parameter to the parsing functions and the parser state. Currently, all callers pass the global trip_table so there should be no change in functionality. These arguments will be replaced in subsequent commits. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/file.h')
-rw-r--r--core/file.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/file.h b/core/file.h
index e0033d94e..fbb6d221d 100644
--- a/core/file.h
+++ b/core/file.h
@@ -7,16 +7,16 @@ struct memblock {
size_t size;
};
-extern int try_to_open_cochran(const char *filename, struct memblock *mem, struct dive_table *table);
-extern int try_to_open_liquivision(const char *filename, struct memblock *mem, struct dive_table *table);
-extern int datatrak_import(struct memblock *mem, struct dive_table *table);
-extern void ostctools_import(const char *file, struct dive_table *table);
+extern int try_to_open_cochran(const char *filename, struct memblock *mem, struct dive_table *table, struct trip_table *trips);
+extern int try_to_open_liquivision(const char *filename, struct memblock *mem, struct dive_table *table, struct trip_table *trips);
+extern int datatrak_import(struct memblock *mem, struct dive_table *table, struct trip_table *trips);
+extern void ostctools_import(const char *file, struct dive_table *table, struct trip_table *trips);
#ifdef __cplusplus
extern "C" {
#endif
extern int readfile(const char *filename, struct memblock *mem);
-extern int try_to_open_zip(const char *filename, struct dive_table *table);
+extern int try_to_open_zip(const char *filename, struct dive_table *table, struct trip_table *trips);
#ifdef __cplusplus
}
#endif