diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-01-08 21:25:02 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-10 02:37:03 +0900 |
commit | e1cd055111cc4f7e11454b3726741f9f8a55d850 (patch) | |
tree | bb391d65743da3285367ec1f1803925978db6877 /core/trip.h | |
parent | 70cabb968c481e566e8249465f153e05e6dc0347 (diff) | |
download | subsurface-e1cd055111cc4f7e11454b3726741f9f8a55d850.tar.gz |
code cleanup: add empty table structures
It seemed to make sense to combine all three types in one commit.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/trip.h')
-rw-r--r-- | core/trip.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/trip.h b/core/trip.h index 51f371589..3a8a2feb7 100644 --- a/core/trip.h +++ b/core/trip.h @@ -24,6 +24,8 @@ typedef struct trip_table { struct dive_trip **trips; } trip_table_t; +static const trip_table_t empty_trip_table = { 0, 0, (struct dive_trip **)0 }; + extern void add_dive_to_trip(struct dive *, dive_trip_t *); extern struct dive_trip *unregister_dive_from_trip(struct dive *dive); extern void remove_dive_from_trip(struct dive *dive, struct trip_table *trip_table_arg); |