summaryrefslogtreecommitdiffstats
path: root/core/input/input.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-02 13:17:50 +0200
committerwm4 <wm4@nowhere>2013-07-02 13:23:26 +0200
commit451f6788cea2f7a90badcf2fb7e1e3679fa513cb (patch)
tree3ed3098c30316d5d8c174da64359e4f873d8a0cf /core/input/input.c
parent0b77649c0b6afb103e0390163bd14f1cf9d20f06 (diff)
downloadmpv-451f6788cea2f7a90badcf2fb7e1e3679fa513cb.tar.bz2
mpv-451f6788cea2f7a90badcf2fb7e1e3679fa513cb.tar.xz
command: add some playlist manipulation commands
playlist_remove and playlist_move.
Diffstat (limited to 'core/input/input.c')
-rw-r--r--core/input/input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/input/input.c b/core/input/input.c
index d7aaf54dec..9f63114530 100644
--- a/core/input/input.c
+++ b/core/input/input.c
@@ -183,6 +183,8 @@ static const mp_cmd_t mp_cmds[] = {
{"append", 1}, {"1", 1})),
}},
{ MP_CMD_PLAYLIST_CLEAR, "playlist_clear", },
+ { MP_CMD_PLAYLIST_REMOVE, "playlist_remove", { ARG_INT } },
+ { MP_CMD_PLAYLIST_MOVE, "playlist_move", { ARG_INT, ARG_INT } },
{ MP_CMD_RUN, "run", { ARG_STRING } },
{ MP_CMD_KEYDOWN_EVENTS, "key_down_event", { ARG_INT } },