* the input and output may come in some random format. This
* keeps track of those units.
*/
+/* turns out in Win32 PASCAL is defined as a calling convention */
+#ifdef WIN32
+#undef PASCAL
+#endif
struct units {
enum { METERS, FEET } length;
enum { LITER, CUFT } volume;
extern int verbose;
struct dive_table {
- int nr, allocated;
+ int nr, allocated, preexisting;
struct dive **dives;
};
extern struct sample *prepare_sample(struct dive **divep);
extern void finish_sample(struct dive *dive, struct sample *sample);
-extern void report_dives(void);
+extern void report_dives(gboolean imported);
extern struct dive *fixup_dive(struct dive *dive);
extern struct dive *try_to_merge(struct dive *a, struct dive *b);
extern void report_error(GError* error);
+extern void add_cylinder_description(cylinder_type_t *);
+extern void add_people(const char *string);
+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 void dive_list_update_dives(void);
extern void flush_divelist(struct dive *dive);