X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=dive.h;h=9e5d2c49e4ab7a1db5fe9cc887887c2e8a703ed4;hb=0c4e1697db2d9e15a05bc76056fca13e9ccb9ba4;hp=6191b60b9179d2fcde0847cde6efcdbf36ead229;hpb=88dc170af6c1aef2a5c9746f1db53f51c5ae450d;p=ext%2Fsubsurface.git diff --git a/dive.h b/dive.h index 6191b60..9e5d2c4 100644 --- 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)