mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
d25de98b7c
commit
e4a31e1e41
3 changed files with 36 additions and 16 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue