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
commit4765653cb3af905a9b20f1e5f2277e50d801c43b (patch)
tree9c9f914e5ea9b19f2312cd43221df37d19dec2f3 /src/header/inc
parentc9754ac4300abad20d942ad18bc5bf611a0b3a2e (diff)
downloadjancity-4765653cb3af905a9b20f1e5f2277e50d801c43b.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 */