summaryrefslogtreecommitdiffstats
path: root/common/msg_control.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-16 21:24:39 +0100
committerwm4 <wm4@nowhere>2014-01-16 23:06:40 +0100
commit99ee43b33bec75bb43b4c02060776a67246bacca (patch)
tree59ca4784324dcf8ccdf24bd265b588004de3ebb6 /common/msg_control.h
parent5b14db5ab1be11f905fbc4afe7fc2e9ff5c29a81 (diff)
downloadmpv-99ee43b33bec75bb43b4c02060776a67246bacca.tar.bz2
mpv-99ee43b33bec75bb43b4c02060776a67246bacca.tar.xz
msg: move special declarations to msg_control.h
While almost everything uses msg.h, the moved definitions are rarely needed by anything.
Diffstat (limited to 'common/msg_control.h')
-rw-r--r--common/msg_control.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/common/msg_control.h b/common/msg_control.h
new file mode 100644
index 0000000000..3ff53971b7
--- /dev/null
+++ b/common/msg_control.h
@@ -0,0 +1,18 @@
+#ifndef MP_MSG_CONTROL_H
+#define MP_MSG_CONTROL_H
+
+#include <stdbool.h>
+
+struct mpv_global;
+void mp_msg_init(struct mpv_global *global);
+void mp_msg_uninit(struct mpv_global *global);
+void mp_msg_update_msglevels(struct mpv_global *global);
+void mp_msg_mute(struct mpv_global *global, bool mute);
+void mp_msg_force_stderr(struct mpv_global *global, bool force_stderr);
+void mp_msg_flush_status_line(struct mpv_global *global);
+bool mp_msg_has_status_line(struct mpv_global *global);
+
+struct bstr;
+int mp_msg_split_msglevel(struct bstr *s, struct bstr *out_mod, int *out_level);
+
+#endif