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>
This commit is contained in:
Dirk Hohndel 2013-04-18 13:18:09 -07:00
parent d25de98b7c
commit e4a31e1e41
3 changed files with 36 additions and 16 deletions

View file

@ -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);