aboutsummaryrefslogtreecommitdiffstats
path: root/core/divesite.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-03-10 22:28:14 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commit84f7179367e4638a323f4bd14990711c84b56ffb (patch)
tree55d93105fafa52a4803b68ba4f910516168a2039 /core/divesite.h
parenta6f65d744f4fd0952df49f5cba0693fc4a73d167 (diff)
downloadsubsurface-84f7179367e4638a323f4bd14990711c84b56ffb.tar.gz
Cleanup: macroize dive site table functions, keep table sorted
Turn the table functions of the dive site handling into macros as was already used for dives and dive trips. This has the effect that the table is kept sorted by UUID. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divesite.h')
-rw-r--r--core/divesite.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/divesite.h b/core/divesite.h
index 087b5f2b7..49e6edea5 100644
--- a/core/divesite.h
+++ b/core/divesite.h
@@ -46,9 +46,8 @@ static inline struct dive_site *get_dive_site(int nr, struct dive_site_table *ds
int get_divesite_idx(const struct dive_site *ds, struct dive_site_table *ds_table);
struct dive_site *get_dive_site_by_uuid(uint32_t uuid, struct dive_site_table *ds_table);
-void dive_site_table_sort(struct dive_site_table *ds_table);
+void sort_dive_site_table(struct dive_site_table *ds_table);
void add_dive_site_to_table(struct dive_site *ds, struct dive_site_table *ds_table);
-void remove_dive_site_from_table(struct dive_site *ds, struct dive_site_table *ds_table);
void register_dive_site(struct dive_site *ds);
void unregister_dive_site(struct dive_site *ds);
struct dive_site *alloc_or_get_dive_site(uint32_t uuid, struct dive_site_table *ds_table);