diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-01-04 16:59:22 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-01-04 17:28:55 +0100 |
commit | 082c5c19a1efe3c450f1ad1b0411d335be88e60e (patch) | |
tree | 37f3eb64aee2285295c0c87bfae0e80a79f7d0e8 /input/input.c | |
parent | bb3ea1580ebb9715ad5cc8829fcbe556c87db66e (diff) | |
download | mpv-082c5c19a1efe3c450f1ad1b0411d335be88e60e.tar.bz2 mpv-082c5c19a1efe3c450f1ad1b0411d335be88e60e.tar.xz |
input: move files drag and drop to a new event.c file
event.c will be used to feed the input queue with 'global' events that don't
mesh well with the usual check_events path in mpv.
Diffstat (limited to 'input/input.c')
-rw-r--r-- | input/input.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c index 6ef5bab1f5..620bd17396 100644 --- a/input/input.c +++ b/input/input.c @@ -1660,3 +1660,12 @@ struct mp_cmd *mp_input_parse_cmd(struct input_ctx *ictx, bstr str, { return mp_input_parse_cmd_(ictx->log, str, location); } + +void mp_input_run_cmd(struct input_ctx *ictx, const char **cmd, + const char *location) +{ + mp_cmd_t *cmdt = mp_input_parse_cmd_strv(ictx->log, + MP_ON_OSD_AUTO, + cmd, location); + mp_input_queue_cmd(ictx, cmdt); +} |