X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=dive.h;h=ccb007dcbd5be6453fa94b1886d37f03f8d560c5;hb=0f139718697035fa8e1b26f908403ad27bb36554;hp=b5a42d3e2f84b3eb36c695be93b4ea861488a86a;hpb=485b02937d8ca1f9a9043c89e74a3d2f15d6426b;p=ext%2Fsubsurface.git diff --git a/dive.h b/dive.h index b5a42d3..ccb007d 100644 --- a/dive.h +++ b/dive.h @@ -5,6 +5,7 @@ #include #include +#include /* * Some silly typedefs to make our units very explicit. @@ -83,7 +84,7 @@ typedef struct { typedef struct { cylinder_type_t type; struct gasmix gasmix; - pressure_t start, end; + pressure_t start, end, sample_start, sample_end; } cylinder_t; extern int get_pressure_units(unsigned int mb, const char **units); @@ -253,11 +254,15 @@ extern void parse_xml_init(void); extern void parse_xml_file(const char *filename, GError **error); extern void set_filename(const char *filename); +#ifdef XSLT +extern xmlDoc *test_xslt_transforms(xmlDoc *doc); +#endif + extern void show_dive_info(struct dive *); -extern void flush_dive_info_changes(struct dive *); extern void show_dive_equipment(struct dive *); -extern void flush_dive_equipment_changes(struct dive *); + +extern void show_dive_stats(struct dive *); extern void update_dive(struct dive *new_dive); extern void save_dives(const char *filename); @@ -285,7 +290,7 @@ extern void add_event(struct dive *dive, int time, int type, int flags, int valu /* UI related protopypes */ -extern void init_ui(int argc, char **argv); +extern void init_ui(int *argcp, char ***argvp); extern void run_ui(void); @@ -297,6 +302,7 @@ extern void add_location(const char *string); extern void remember_event(const char *eventname); extern void evn_foreach(void (*callback)(const char *, int *, void *), void *data); +extern int edit_dive_info(struct dive *dive); extern void dive_list_update_dives(void); extern void flush_divelist(struct dive *dive);