From 19abeaf62d408f2ef2436f67ef12a3ac2120638a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 12 Apr 2014 20:13:53 +0200 Subject: lua: wrap mpv_get_wakeup_pipe() Pretty much experimental for issue #661. --- player/lua.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'player') diff --git a/player/lua.c b/player/lua.c index e9065d488b..36cbadcd3b 100644 --- a/player/lua.c +++ b/player/lua.c @@ -1047,6 +1047,13 @@ static int script_format_time(lua_State *L) return 1; } +static int script_get_wakeup_pipe(lua_State *L) +{ + struct script_ctx *ctx = get_ctx(L); + lua_pushinteger(L, mpv_get_wakeup_pipe(ctx->client)); + return 1; +} + struct fn_entry { const char *name; int (*fn)(lua_State *L); @@ -1085,6 +1092,7 @@ static struct fn_entry fn_list[] = { FN_ENTRY(input_set_section_mouse_area), FN_ENTRY(format_time), FN_ENTRY(enable_messages), + FN_ENTRY(get_wakeup_pipe), }; // On stack: mp table -- cgit v1.2.3