aboutsummaryrefslogtreecommitdiffstats
path: root/core/save-profiledata.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2019-03-30 20:59:28 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-04 09:33:56 -0700
commit8c9e5becb20d2d8c8aa1f7108775cc520b08fae1 (patch)
treecc7bdbc918716ba4d7cf9d39acebce1ecc1cbc31 /core/save-profiledata.h
parenta89b36c661662346c6c8092bdd2cefebf8f58c8a (diff)
downloadsubsurface-8c9e5becb20d2d8c8aa1f7108775cc520b08fae1.tar.gz
Export profile data
This introduces a csv file that contains the data from the structs defined in profile.c, in particular all deco information computed for the dive profle (including NDL, TTS, ceilings, surface GFs etc). Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/save-profiledata.h')
-rw-r--r--core/save-profiledata.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/save-profiledata.h b/core/save-profiledata.h
new file mode 100644
index 000000000..23e833a27
--- /dev/null
+++ b/core/save-profiledata.h
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef SAVE_PROFILE_DATA_H
+#define SAVE_PROFILE_DATA_H
+
+#include "dive.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int save_profiledata(const char *filename, bool selected_only);
+
+#ifdef __cplusplus
+}
+#endif
+#endif // SAVE_PROFILE_DATA_H