summaryrefslogtreecommitdiffstats
path: root/core/import-csv.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-09-28 13:59:01 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-28 15:06:00 -0700
commit32a4ce61694bfe8364227440ea5716df7cc61fd1 (patch)
tree257ac4f9204182b20d7e4bda7bc80911bc6303a6 /core/import-csv.h
parenta5db03c2b32115b14e4b83501a0771b186d87913 (diff)
downloadsubsurface-32a4ce61694bfe8364227440ea5716df7cc61fd1.tar.gz
Parser: parse text-based files into arbitrary table
In d815e0c9476ef62e6b84fb28ce48ab7cddefe77e a dive_table pointer was added to the parsing functions to allow parsing into tables other than the global dive table. This will be necessary for undo of import and implementation a cleaner interface. A few cases, notably CSV and proprietary formats were forgotten. Implement parsing into arbitrary tables also for these cases. 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 1f1d330e7..363daa291 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);
-int try_to_open_csv(struct memblock *mem, enum csv_format type);
-int parse_txt_file(const char *filename, const char *csv);
+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_seabear_log(const char *filename);
-int parse_manual_file(const char *filename, char **params, int pnr);
+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);
#ifdef __cplusplus
}