summaryrefslogtreecommitdiffstats
path: root/common/global.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:36:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:36:56 +0000
commit51de1d8436100f725f3576aefa24a2bd2057bc28 (patch)
treec6d1d5264b6d40a8d7ca34129f36b7d61e188af3 /common/global.h
parentInitial commit. (diff)
downloadmpv-51de1d8436100f725f3576aefa24a2bd2057bc28.tar.xz
mpv-51de1d8436100f725f3576aefa24a2bd2057bc28.zip
Adding upstream version 0.37.0.upstream/0.37.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'common/global.h')
-rw-r--r--common/global.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/global.h b/common/global.h
new file mode 100644
index 0000000..f95cf28
--- /dev/null
+++ b/common/global.h
@@ -0,0 +1,15 @@
+#ifndef MPV_MPV_H
+#define MPV_MPV_H
+
+// This should be accessed by glue code only, never normal code.
+// The only purpose of this is to make mpv library-safe.
+// Think hard before adding new members.
+struct mpv_global {
+ struct mp_log *log;
+ struct m_config_shadow *config;
+ struct mp_client_api *client_api;
+ char *configdir;
+ struct stats_base *stats;
+};
+
+#endif