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