mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
28e3413ff6
Instead of having people treat latitude and longitude as separate things, just add a 'location_t' data structure that contains both. Almost all cases want to always act on them together. This is really just prep-work for adding a few more locations that we track: I want to add a entry/exit location to each dive (independent of the dive site) because of how the Garmin Descent gives us the information (and hopefully, some day, other dive computers too). Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
31 lines
595 B
C
31 lines
595 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
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
enum mediatype_t get_metadata(const char *filename, struct metadata *data);
|
|
timestamp_t picture_get_timestamp(const char *filename);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // METADATA_H
|