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/liquivision.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/liquivision.c') diff --git a/core/liquivision.c b/core/liquivision.c index bb3f2c7b4..5d9fa0a73 100644 --- a/core/liquivision.c +++ b/core/liquivision.c @@ -441,9 +441,10 @@ static void parse_dives (int log_version, const unsigned char *buf, unsigned int free(dive); } -int try_to_open_liquivision(const char *filename, struct memblock *mem, struct dive_table *table) +int try_to_open_liquivision(const char *filename, struct memblock *mem, struct dive_table *table, struct trip_table *trips) { UNUSED(filename); + UNUSED(trips); const unsigned char *buf = mem->buffer; unsigned int buf_size = mem->size; unsigned int ptr; -- cgit v1.2.3-70-g09d2