diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-04-18 13:18:09 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-04-21 16:27:42 -0700 |
commit | e4a31e1e41d14526abb0f06d99898420851cc39f (patch) | |
tree | 40aab58404515c485c323c9198b050ad1eae8b63 /divelist.h | |
parent | d25de98b7c76ffa2287754623c5f14f969aae80e (diff) | |
download | subsurface-e4a31e1e41d14526abb0f06d99898420851cc39f.tar.gz |
Move creation of dive and dive trip date string into helper functions
This allows this code to easily be shared by Gtk and Qt UI.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.h')
-rw-r--r-- | divelist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/divelist.h b/divelist.h index ac7953287..5d30e9b1d 100644 --- a/divelist.h +++ b/divelist.h @@ -22,6 +22,8 @@ extern void upload_all_dives_divelogs_cb(); #endif /* divelist core logic functions */ +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); extern dive_trip_t *find_trip_by_idx(int idx); extern int dive_nr_sort(int idx_a, int idx_b, timestamp_t when_a, timestamp_t when_b); |