summaryrefslogtreecommitdiffstats
path: root/divelist.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-18 13:18:09 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-18 13:18:09 -0700
commit75765be14cc90886d7f46ec02097b7efeb3d8234 (patch)
tree8029786e6399bc0a1298005263afc74c37452add /divelist.h
parent1a15462073d854674e4d745c6af0249a1d48452e (diff)
downloadsubsurface-75765be14cc90886d7f46ec02097b7efeb3d8234.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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/divelist.h b/divelist.h
index e7de9e631..014c4e0ee 100644
--- a/divelist.h
+++ b/divelist.h
@@ -21,6 +21,8 @@ extern double init_decompression(struct dive * dive);
extern void export_all_dives_uddf_cb();
/* 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);