From 7e33369dc8b27b20385ab055b662e06bbf369784 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 27 Nov 2018 00:25:15 +0100 Subject: 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 --- core/import-csv.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/import-csv.h') 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 } -- cgit v1.2.3-70-g09d2