2011-09-05 19:12:58 +00:00
|
|
|
#ifndef DIVELIST_H
|
|
|
|
#define DIVELIST_H
|
|
|
|
|
2013-04-01 10:51:49 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
2013-04-24 23:52:18 +00:00
|
|
|
#endif
|
2013-04-24 23:33:29 +00:00
|
|
|
|
2011-09-19 23:41:56 +00:00
|
|
|
struct dive;
|
|
|
|
|
2013-04-24 23:33:29 +00:00
|
|
|
extern void report_dives(bool imported, bool prefer_imported);
|
2011-09-20 17:06:24 +00:00
|
|
|
extern void dive_list_update_dives(void);
|
2011-09-27 17:16:40 +00:00
|
|
|
extern void update_dive_list_col_visibility(void);
|
2011-09-20 17:06:24 +00:00
|
|
|
extern void update_dive_list_units(void);
|
|
|
|
extern void flush_divelist(struct dive *);
|
2011-11-13 17:29:07 +00:00
|
|
|
extern void update_cylinder_related_info(struct dive *);
|
2011-09-21 04:29:09 +00:00
|
|
|
extern void mark_divelist_changed(int);
|
|
|
|
extern int unsaved_changes(void);
|
2012-09-03 04:48:30 +00:00
|
|
|
extern void remove_autogen_trips(void);
|
2013-01-01 16:22:46 +00:00
|
|
|
extern void select_next_dive(void);
|
|
|
|
extern void select_prev_dive(void);
|
2013-01-14 04:41:48 +00:00
|
|
|
extern void show_and_select_dive(struct dive *dive);
|
2013-01-05 07:11:42 +00:00
|
|
|
extern double init_decompression(struct dive * dive);
|
2013-03-24 08:00:25 +00:00
|
|
|
extern void export_all_dives_uddf_cb();
|
2013-04-01 10:51:49 +00:00
|
|
|
|
2013-04-07 03:49:06 +00:00
|
|
|
/* divelist core logic functions */
|
2013-04-24 23:33:29 +00:00
|
|
|
extern void process_dives(bool imported, bool prefer_imported);
|
2013-04-25 04:05:57 +00:00
|
|
|
extern char *get_dive_date_string(timestamp_t when);
|
|
|
|
extern char *get_trip_date_string(timestamp_t when, int nr);
|
2013-05-02 17:38:34 +00:00
|
|
|
extern char *get_nitrox_string(struct dive *dive);
|
2013-04-15 14:06:32 +00:00
|
|
|
extern void clear_trip_indexes(void);
|
2013-04-07 03:49:06 +00:00
|
|
|
extern dive_trip_t *find_trip_by_idx(int idx);
|
2013-04-07 04:28:03 +00:00
|
|
|
extern int dive_nr_sort(int idx_a, int idx_b, timestamp_t when_a, timestamp_t when_b);
|
2013-04-07 03:49:06 +00:00
|
|
|
extern int trip_has_selected_dives(dive_trip_t *trip);
|
2013-04-07 04:28:03 +00:00
|
|
|
extern void get_depth_values(int depth, int *depth_int, int *depth_decimal, int *show_decimal);
|
2013-04-07 03:49:06 +00:00
|
|
|
extern void get_dive_gas(struct dive *dive, int *o2_p, int *he_p, int *o2low_p);
|
|
|
|
extern int get_divenr(struct dive *dive);
|
|
|
|
extern void get_location(struct dive *dive, char **str);
|
|
|
|
extern void get_cylinder(struct dive *dive, char **str);
|
|
|
|
extern void get_suit(struct dive *dive, char **str);
|
|
|
|
extern dive_trip_t *find_matching_trip(timestamp_t when);
|
|
|
|
extern void remove_dive_from_trip(struct dive *dive);
|
|
|
|
extern dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive);
|
|
|
|
extern void autogroup_dives(void);
|
|
|
|
extern void merge_dive_index(int i, struct dive *a);
|
|
|
|
extern void select_dive(int idx);
|
|
|
|
extern void deselect_dive(int idx);
|
|
|
|
|
|
|
|
#ifdef DEBUG_TRIP
|
|
|
|
extern void dump_selection(void);
|
|
|
|
extern void dump_trip_list(void);
|
|
|
|
#endif
|
|
|
|
|
2013-04-01 10:51:49 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2011-09-05 19:12:58 +00:00
|
|
|
#endif
|