mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use XSLT file to open JDiveLog logs
Open JDiveLog files by translating them to subsurface format using XSLT. These files are identified by the name of the first element (JDiveLog) and transform is applied to only these. The XSLT feature is compiled in only if libxslt is installed. The transformation files are installed globally in Linux under /usr/share/subsurface/xslt. Windows and OSX still need appropriate Makefile changes and testing. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4b735521e2
commit
350462949d
4 changed files with 52 additions and 3 deletions
5
dive.h
5
dive.h
|
|
@ -5,6 +5,7 @@
|
|||
#include <time.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <libxml/tree.h>
|
||||
|
||||
/*
|
||||
* Some silly typedefs to make our units very explicit.
|
||||
|
|
@ -253,6 +254,10 @@ extern void parse_xml_init(void);
|
|||
extern void parse_xml_file(const char *filename, GError **error);
|
||||
extern void set_filename(const char *filename);
|
||||
|
||||
#ifdef XSLT
|
||||
extern xmlDoc *test_xslt_transforms(xmlDoc *doc);
|
||||
#endif
|
||||
|
||||
extern void show_dive_info(struct dive *);
|
||||
extern void flush_dive_info_changes(struct dive *);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue