diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-03-10 10:24:49 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-10 09:29:12 -0700 |
commit | 42ea5e351014994980fa0704784906b06a501eec (patch) | |
tree | ab5bc00c2627400214e5bce90866fa5448c63805 /dive.h | |
parent | 7c6ff9f957a1e7bfebb968cdc4bb96e2832ea4d8 (diff) | |
download | subsurface-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |