diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-21 19:52:37 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-23 08:06:17 +0100 |
commit | 46bf8bf2fa37f1aae44241a5f7d846810041aac9 (patch) | |
tree | 46abbf0adaad88bd4248ade4b4078b079141b505 /core/dive.h | |
parent | 45f4dac70a766138bdd7544c9ef8657b81f63110 (diff) | |
download | subsurface-46bf8bf2fa37f1aae44241a5f7d846810041aac9.tar.gz |
Core: export free_picture()
Export the free_picture() function from dive.c. The parser may need
this in case of truncated files to free its temporary resources.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h index e9ad1f502..4f62c3e31 100644 --- a/core/dive.h +++ b/core/dive.h @@ -375,6 +375,7 @@ struct picture { for (struct picture *picture = (_divestruct).picture_list; picture; picture = picture->next) extern struct picture *alloc_picture(); +extern void free_picture(struct picture *picture); extern bool dive_check_picture_time(const struct dive *d, int shift_time, timestamp_t timestamp); extern void dive_create_picture(struct dive *d, const char *filename, int shift_time, bool match_all); extern void dive_add_picture(struct dive *d, struct picture *newpic); |