diff options
Diffstat (limited to 'core/divesite.h')
-rw-r--r-- | core/divesite.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/divesite.h b/core/divesite.h index 49e6edea5..50bd0b406 100644 --- a/core/divesite.h +++ b/core/divesite.h @@ -47,16 +47,14 @@ 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 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 register_dive_site(struct dive_site *ds); -void unregister_dive_site(struct dive_site *ds); +int add_dive_site_to_table(struct dive_site *ds, struct dive_site_table *ds_table); struct dive_site *alloc_or_get_dive_site(uint32_t uuid, struct dive_site_table *ds_table); struct dive_site *alloc_dive_site(); int nr_of_dives_at_dive_site(struct dive_site *ds); bool is_dive_site_used(struct dive_site *ds, bool select_only); void free_dive_site(struct dive_site *ds); -void unregister_dive_site(struct dive_site *ds); -void register_dive_site(struct dive_site *ds); +int unregister_dive_site(struct dive_site *ds); +int register_dive_site(struct dive_site *ds); void delete_dive_site(struct dive_site *ds, struct dive_site_table *ds_table); struct dive_site *create_dive_site(const char *name, struct dive_site_table *ds_table); struct dive_site *create_dive_site_with_gps(const char *name, const location_t *, struct dive_site_table *ds_table); |