diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-04-24 16:33:29 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-04-24 16:38:25 -0700 |
commit | 92a5a5c35b39543a2feaeea247eb7390cd3a9e94 (patch) | |
tree | c48388fd9cd08a0196855367112f9cbf4493a6d4 /divelist.h | |
parent | 02d822924cd13ad6935e167d9a7597af91445a60 (diff) | |
download | subsurface-92a5a5c35b39543a2feaeea247eb7390cd3a9e94.tar.gz |
Split report_dives into UI and logic and move to divelist files
Functionality is unchanged, except we now have a nice process_dives
function that deals with all the logic and that gets called from
report_dives from the Gtk code.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.h')
-rw-r--r-- | divelist.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/divelist.h b/divelist.h index 014c4e0ee..e3ff1be09 100644 --- a/divelist.h +++ b/divelist.h @@ -4,8 +4,12 @@ #ifdef __cplusplus extern "C" { #endif + +#include <stdbool.h> + struct dive; +extern void report_dives(bool imported, bool prefer_imported); extern void dive_list_update_dives(void); extern void update_dive_list_col_visibility(void); extern void update_dive_list_units(void); @@ -21,6 +25,7 @@ extern double init_decompression(struct dive * dive); extern void export_all_dives_uddf_cb(); /* divelist core logic functions */ +extern void process_dives(bool imported, bool prefer_imported); extern char *get_dive_date_string(struct tm *tm); extern char *get_trip_date_string(struct tm *tm, int nr); extern void clear_trip_indexes(void); |