mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
25234c0513
commit
f2cdca7bcc
4 changed files with 5 additions and 4 deletions
|
@ -13,8 +13,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "divesite.h"
|
#include "divesite.h"
|
||||||
#include <libxslt/transform.h>
|
|
||||||
#include <libxslt/xsltutils.h>
|
|
||||||
|
|
||||||
#include "units.h"
|
#include "units.h"
|
||||||
|
|
||||||
|
@ -507,8 +505,6 @@ extern bool subsurface_user_is_root(void);
|
||||||
|
|
||||||
extern timestamp_t get_times();
|
extern timestamp_t get_times();
|
||||||
|
|
||||||
extern xsltStylesheetPtr get_stylesheet(const char *name);
|
|
||||||
|
|
||||||
extern timestamp_t utc_mktime(struct tm *tm);
|
extern timestamp_t utc_mktime(struct tm *tm);
|
||||||
extern void utc_mkdate(timestamp_t, struct tm *tm);
|
extern void utc_mkdate(timestamp_t, struct tm *tm);
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// Clang has a bug on zero-initialization of C structs.
|
// Clang has a bug on zero-initialization of C structs.
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
#endif
|
#endif
|
||||||
|
#include <stdarg.h>
|
||||||
#include "dive.h"
|
#include "dive.h"
|
||||||
#include "membuffer.h"
|
#include "membuffer.h"
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
#define QTHELPER_H
|
#define QTHELPER_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <libxslt/transform.h>
|
||||||
|
#include <libxslt/xsltutils.h>
|
||||||
#include "dive.h"
|
#include "dive.h"
|
||||||
#include "divelist.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 print_qt_versions();
|
||||||
void lock_planner();
|
void lock_planner();
|
||||||
void unlock_planner();
|
void unlock_planner();
|
||||||
|
xsltStylesheetPtr get_stylesheet(const char *name);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdarg.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue