]> git.tdb.fi Git - ext/subsurface.git/blobdiff - dive.h
Start some very initial libdivecomputer integration
[ext/subsurface.git] / dive.h
diff --git a/dive.h b/dive.h
index 6191b60b9179d2fcde0847cde6efcdbf36ead229..9e5d2c49e4ab7a1db5fe9cc887887c2e8a703ed4 100644 (file)
--- a/dive.h
+++ b/dive.h
@@ -128,6 +128,7 @@ struct sample {
 #define MAX_CYLINDERS (8)
 
 struct dive {
+       int number;
        time_t when;
        char *location;
        char *notes;
@@ -165,6 +166,9 @@ struct dive_table {
 
 extern struct dive_table dive_table;
 
+extern int selected_dive;
+#define current_dive (get_dive(selected_dive))
+
 static inline struct dive *get_dive(unsigned int nr)
 {
        if (nr >= dive_table.nr)