summaryrefslogtreecommitdiffstats
path: root/core/metadata.h
blob: da2a9c3d28ce406d3143412048a9913f1a16b400 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef METADATA_H
#define METADATA_H

#include "units.h"

struct metadata {
	timestamp_t	timestamp;
	degrees_t	latitude;
	degrees_t	longitude;
};

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