summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-03-10 10:24:49 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-03-10 09:29:12 -0700
commit42ea5e351014994980fa0704784906b06a501eec (patch)
treeab5bc00c2627400214e5bce90866fa5448c63805 /dive.h
parent7c6ff9f957a1e7bfebb968cdc4bb96e2832ea4d8 (diff)
downloadsubsurface-42ea5e351014994980fa0704784906b06a501eec.tar.gz
.DLD generation for uploading to divelogs.de
This generates a .DLD file of selected dives to be uploaded to divelogs.de. The actual upload functionality along with sensible user interface is still to be implemented. However, the resulting file from this patch is tested to work (as far as I can tell) using upload API of divelogs.de. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 6eb9a385a..b6738d171 100644
--- a/dive.h
+++ b/dive.h
@@ -9,6 +9,9 @@
#include <glib.h>
#include <glib/gstdio.h>
#include <libxml/tree.h>
+#ifdef XSLT
+#include <libxslt/transform.h>
+#endif
#include "sha1.h"
@@ -545,6 +548,11 @@ extern void show_yearly_stats(void);
extern void update_dive(struct dive *new_dive);
extern void save_dives(const char *filename);
extern void save_dives_logic(const char *filename, gboolean select_only);
+extern void save_dive(FILE *f, struct dive *dive);
+
+#ifdef XSLT
+extern xsltStylesheetPtr get_stylesheet(const char *name);
+#endif
extern timestamp_t utc_mktime(struct tm *tm);
extern void utc_mkdate(timestamp_t, struct tm *tm);