aboutsummaryrefslogtreecommitdiff
path: root/src/header/inc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-02-20 19:04:21 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-03-30 08:20:21 +0200
commit18717569acda82b26099c62410df3b398d596ba1 (patch)
tree62ce54c1fd47b1b5eeb1f3af465345675d18b1d9 /src/header/inc
parent3ce1418ce5141eac6e526dcfb7a824a7731bbe03 (diff)
downloadrts-18717569acda82b26099c62410df3b398d596ba1.tar.gz
Add metadata header to media files
The following properties are supported: - Sound: "loop". Must be either 0 or 1 - Images: "transparent". Must be either 0 or 1 These headers are only used for non-PS1 builds, since .TIM and .VAG files do already implement such information.
Diffstat (limited to 'src/header/inc')
-rw-r--r--src/header/inc/header.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/header/inc/header.h b/src/header/inc/header.h
new file mode 100644
index 0000000..7514132
--- /dev/null
+++ b/src/header/inc/header.h
@@ -0,0 +1,18 @@
+#ifndef HEADER_H
+#define HEADER_H
+
+#include <stdbool.h>
+#include <stdio.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+int header_load_bool(FILE *f, const char *key, bool *value);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* HEADER_H */