aboutsummaryrefslogtreecommitdiffstats
path: root/core/file.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-07 07:52:55 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-07 07:52:55 -0700
commitd7cf3408e5d2f8c7f5ce25fa2b330cc3e75ff489 (patch)
treeed03b77b996476acff2ed848f107e4c0e75536e2 /core/file.c
parent75762e5f16bf80c853ecda4fd57a16adcaa22926 (diff)
parent21cdc647121455a3dd5e3e1dc76c2294fd017369 (diff)
downloadsubsurface-d7cf3408e5d2f8c7f5ce25fa2b330cc3e75ff489.tar.gz
Merge branch 'seabear-refactor'
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/file.c')
-rw-r--r--core/file.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/file.c b/core/file.c
index 59d00badb..7b24da8e7 100644
--- a/core/file.c
+++ b/core/file.c
@@ -1056,6 +1056,20 @@ int parse_csv_file(const char *filename, char **params, int pnr, const char *csv
}
#define SBPARAMS 40
+int parse_seabear_log(const char *filename)
+{
+ char *params[SBPARAMS];
+ int pnr = 0;
+
+ pnr = parse_seabear_header(filename, params, pnr);
+
+ if (parse_seabear_csv_file(filename, params, pnr, "csv") < 0) {
+ return -1;
+ }
+
+ return 0;
+}
+
int parse_seabear_csv_file(const char *filename, char **params, int pnr, const char *csvtemplate)
{
int ret, i;