From 3f3869ff650229e99262ee07b14e1d14ca973d10 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 10 Apr 2020 09:42:14 +0200 Subject: media: move picture function from dive.c to picture.c Currently, move only those functions that do not access dive structures. Signed-off-by: Berthold Stoeger --- core/picture.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 core/picture.h (limited to 'core/picture.h') diff --git a/core/picture.h b/core/picture.h new file mode 100644 index 000000000..93b644d71 --- /dev/null +++ b/core/picture.h @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0 +#ifndef PICTURE_H +#define PICTURE_H + +// picture (more precisely media) related strutures and functions +#include "units.h" + +struct picture { + char *filename; + offset_t offset; + location_t location; + struct picture *next; +}; + +extern struct picture *alloc_picture(); +extern void free_picture(struct picture *picture); + +#endif // PICTURE_H -- cgit v1.2.3-70-g09d2