summaryrefslogtreecommitdiffstats
path: root/core/divesite.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-02-26 21:14:48 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-02-28 07:27:10 -0800
commit3c2dd7f7c6144a9b586269fcae35fe58a38f037d (patch)
treefd0c9430625d6b314a69c5170b0b2de3e9df956d /core/divesite.h
parent9c87c0dafd5d9946261787bcbb2e6311b5e5f444 (diff)
downloadsubsurface-3c2dd7f7c6144a9b586269fcae35fe58a38f037d.tar.gz
Cleanup: move get_divesite_idx() to divesite.c
This function was defined in divelist.c, whereas it's better located in divesite.c. Move it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divesite.h')
-rw-r--r--core/divesite.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/divesite.h b/core/divesite.h
index 01c1f82f3..b3ae0657c 100644
--- a/core/divesite.h
+++ b/core/divesite.h
@@ -42,6 +42,7 @@ static inline struct dive_site *get_dive_site(int nr)
#define for_each_dive_site(_i, _x) \
for ((_i) = 0; ((_x) = get_dive_site(_i)) != NULL; (_i)++)
+int get_divesite_idx(const struct dive_site *ds);
struct dive_site *get_dive_site_by_uuid(uint32_t uuid);
void dive_site_table_sort();
struct dive_site *alloc_or_get_dive_site(uint32_t uuid);