diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2011-11-05 12:39:17 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-05 13:24:53 -0700 |
commit | 350462949d2dc205355e5c94ccaacf83a0775257 (patch) | |
tree | 509a28ad12c6754824fb537837a3a7adc376b456 /dive.h | |
parent | 4b735521e2561fe6d03f9f94122fbdc58f48e4a5 (diff) | |
download | subsurface-350462949d2dc205355e5c94ccaacf83a0775257.tar.gz |
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>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 *); |