summaryrefslogtreecommitdiffstats
path: root/common/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/global.h')
-rw-r--r--common/global.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/global.h b/common/global.h
new file mode 100644
index 0000000000..546c585294
--- /dev/null
+++ b/common/global.h
@@ -0,0 +1,12 @@
+#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 MPOpts *opts;
+ struct mp_log *log;
+};
+
+#endif