diff options
author | wm4 <wm4@nowhere> | 2014-08-02 01:35:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-02 01:53:21 +0200 |
commit | be337aa41567b6603ad5b017ff8add6a5f1e0bd8 (patch) | |
tree | bd8b34b7e6ede5dcb97cd5d8019102ddc5195bf3 /player/lua.c | |
parent | 16e5ec88e11523ae8336344584b9e6fc8aa515c8 (diff) | |
download | mpv-be337aa41567b6603ad5b017ff8add6a5f1e0bd8.tar.bz2 mpv-be337aa41567b6603ad5b017ff8add6a5f1e0bd8.tar.xz |
command: add a property that returns a list of all properties
Also remove the undocumented Lua mp.property_list() function.
Diffstat (limited to 'player/lua.c')
-rw-r--r-- | player/lua.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/player/lua.c b/player/lua.c index 81a6363d2a..ce0de907a5 100644 --- a/player/lua.c +++ b/player/lua.c @@ -699,18 +699,6 @@ static int script_set_property_native(lua_State *L) } -static int script_property_list(lua_State *L) -{ - const struct m_property *props = mp_get_property_list(); - lua_newtable(L); - for (int i = 0; props[i].name; i++) { - lua_pushinteger(L, i + 1); - lua_pushstring(L, props[i].name); - lua_settable(L, -3); - } - return 1; -} - static int script_get_property(lua_State *L) { struct script_ctx *ctx = get_ctx(L); @@ -1099,7 +1087,6 @@ static const struct fn_entry main_fns[] = { FN_ENTRY(set_property_native), FN_ENTRY(raw_observe_property), FN_ENTRY(raw_unobserve_property), - FN_ENTRY(property_list), FN_ENTRY(set_osd_ass), FN_ENTRY(get_osd_resolution), FN_ENTRY(get_screen_size), |