summaryrefslogtreecommitdiffstats
path: root/core/import-csv.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/import-csv.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/import-csv.h')
-rw-r--r--core/import-csv.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/import-csv.h b/core/import-csv.h
index 363daa291..2ae9cffdf 100644
--- a/core/import-csv.h
+++ b/core/import-csv.h
@@ -21,12 +21,12 @@ enum csv_format {
extern "C" {
#endif
-int parse_csv_file(const char *filename, char **params, int pnr, const char *csvtemplate, struct dive_table *table);
-int try_to_open_csv(struct memblock *mem, enum csv_format type, struct dive_table *table);
-int parse_txt_file(const char *filename, const char *csv, struct dive_table *table);
+int parse_csv_file(const char *filename, char **params, int pnr, const char *csvtemplate, struct dive_table *table, struct trip_table *trips);
+int try_to_open_csv(struct memblock *mem, enum csv_format type, struct dive_table *table, struct trip_table *trips);
+int parse_txt_file(const char *filename, const char *csv, struct dive_table *table, struct trip_table *trips);
-int parse_seabear_log(const char *filename, struct dive_table *table);
-int parse_manual_file(const char *filename, char **params, int pnr, struct dive_table *table);
+int parse_seabear_log(const char *filename, struct dive_table *table, struct trip_table *trips);
+int parse_manual_file(const char *filename, char **params, int pnr, struct dive_table *table, struct trip_table *trips);
#ifdef __cplusplus
}