subsurface/core/metadata.h
Berthold Stoeger b56dd13add build: remove extern "C" linkage
No more C source files, no more necessity to use C-linkage.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-08-13 19:28:30 +02:00

23 lines
526 B
C

#ifndef METADATA_H
#define METADATA_H
#include "units.h"
struct metadata {
timestamp_t timestamp;
duration_t duration;
location_t location;
};
enum mediatype_t {
MEDIATYPE_UNKNOWN, // Couldn't (yet) identify file
MEDIATYPE_IO_ERROR, // Couldn't read file
MEDIATYPE_PICTURE,
MEDIATYPE_VIDEO,
MEDIATYPE_STILL_LOADING, // Still processing in the background
};
enum mediatype_t get_metadata(const char *filename, struct metadata *data);
timestamp_t picture_get_timestamp(const char *filename);
#endif // METADATA_H