mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
.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>
This commit is contained in:
parent
7c6ff9f957
commit
42ea5e3510
4 changed files with 138 additions and 1 deletions
8
dive.h
8
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue