summaryrefslogtreecommitdiffstats
path: root/mpvcore/player/mp_lua.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-29 21:35:29 +0100
committerwm4 <wm4@nowhere>2013-10-30 01:51:28 +0100
commita84258d769a3d06958a017bb3fc47521ade5751b (patch)
treed502084fdaca4125059364658575fd0795d32c84 /mpvcore/player/mp_lua.h
parent884b4600a478a1a4b56c53e71dd697ca6773494b (diff)
downloadmpv-a84258d769a3d06958a017bb3fc47521ade5751b.tar.bz2
mpv-a84258d769a3d06958a017bb3fc47521ade5751b.tar.xz
Move files part of the playback core to player sub-directory
All these files access mp_core.h and MPContext, and form the actual player application. They should be all in one place, and separate from the other sources that are mere utility helpers. Preparation for splitting mplayer.c into multiple smaller parts.
Diffstat (limited to 'mpvcore/player/mp_lua.h')
-rw-r--r--mpvcore/player/mp_lua.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/mpvcore/player/mp_lua.h b/mpvcore/player/mp_lua.h
new file mode 100644
index 0000000000..050548e2d2
--- /dev/null
+++ b/mpvcore/player/mp_lua.h
@@ -0,0 +1,14 @@
+#ifndef MP_LUA_H
+#define MP_LUA_H
+
+#include <stdbool.h>
+
+struct MPContext;
+
+void mp_lua_init(struct MPContext *mpctx);
+void mp_lua_uninit(struct MPContext *mpctx);
+void mp_lua_event(struct MPContext *mpctx, const char *name, const char *arg);
+void mp_lua_script_dispatch(struct MPContext *mpctx, char *script_name,
+ int id, char *event);
+
+#endif