summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h33
1 files changed, 29 insertions, 4 deletions
diff --git a/dive.h b/dive.h
index 0c2e5b721..50e0dc4d4 100644
--- a/dive.h
+++ b/dive.h
@@ -9,9 +9,7 @@
#include <glib.h>
#include <glib/gstdio.h>
#include <libxml/tree.h>
-#ifdef XSLT
#include <libxslt/transform.h>
-#endif
#include "sha1.h"
@@ -38,6 +36,34 @@ typedef int bool;
#define SEAWATER_SALINITY 10300
#define FRESHWATER_SALINITY 10000
+/* Dive tag definitions */
+#define DTAG_INVALID (1 << 0)
+#define DTAG_BOAT (1 << 1)
+#define DTAG_SHORE (1 << 2)
+#define DTAG_DRIFT (1 << 3)
+#define DTAG_DEEP (1 << 4)
+#define DTAG_CAVERN (1 << 5)
+#define DTAG_ICE (1 << 6)
+#define DTAG_WRECK (1 << 7)
+#define DTAG_CAVE (1 << 8)
+#define DTAG_ALTITUDE (1 << 9)
+#define DTAG_POOL (1 << 10)
+#define DTAG_LAKE (1 << 11)
+#define DTAG_RIVER (1 << 12)
+#define DTAG_NIGHT (1 << 13)
+#define DTAG_FRESH (1 << 14)
+#define DTAG_FRESH_NR 14
+#define DTAG_STUDENT (1 << 15)
+#define DTAG_INSTRUCTOR (1 << 16)
+#define DTAG_PHOTO (1 << 17)
+#define DTAG_VIDEO (1 << 18)
+#define DTAG_DECO (1 << 19)
+#define DTAG_NR 20
+/* defined in statistics.c */
+extern char *dtag_names[DTAG_NR];
+extern int dtag_shown[DTAG_NR];
+extern int dive_mask;
+
/*
* Some silly typedefs to make our units very explicit.
*
@@ -351,6 +377,7 @@ struct dive {
pressure_t surface_pressure;
duration_t duration;
int salinity; // kg per 10000 l
+ int dive_tags;
struct divecomputer dc;
};
@@ -582,9 +609,7 @@ 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);