Cleanup: move declaration of get_stylesheet() to qthelper.h

The function is defined in qthelper.c and thus not all users
of dive.h have to suck in the xslt headers.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-03-03 22:55:18 +01:00 committed by Dirk Hohndel
parent 25234c0513
commit f2cdca7bcc
4 changed files with 5 additions and 4 deletions

View file

@ -13,8 +13,6 @@
#include <string.h>
#include <sys/stat.h>
#include "divesite.h"
#include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
#include "units.h"
@ -507,8 +505,6 @@ extern bool subsurface_user_is_root(void);
extern timestamp_t get_times();
extern xsltStylesheetPtr get_stylesheet(const char *name);
extern timestamp_t utc_mktime(struct tm *tm);
extern void utc_mkdate(timestamp_t, struct tm *tm);

View file

@ -3,6 +3,7 @@
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
#endif
#include <stdarg.h>
#include "dive.h"
#include "membuffer.h"

View file

@ -3,6 +3,8 @@
#define QTHELPER_H
#include <stdint.h>
#include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
#include "dive.h"
#include "divelist.h"
@ -161,6 +163,7 @@ void cache_insert(int tissue, int timestep, enum inertgas gas, double value);
void print_qt_versions();
void lock_planner();
void unlock_planner();
xsltStylesheetPtr get_stylesheet(const char *name);
#ifdef __cplusplus
}

View file

@ -16,6 +16,7 @@
#include <fcntl.h>
#include <dirent.h>
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>