diff options
author | wm4 <wm4@nowhere> | 2017-04-01 20:36:39 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-01 20:36:39 +0200 |
commit | a071d5fcfeee4cc0ac58a4e0cf1968c8c92ff080 (patch) | |
tree | 9ad851a36cba05801f691e7360ea5001b540ef65 /input/input.h | |
parent | ec3dd7164ceea9ceda71e05e774501874fd20924 (diff) | |
download | mpv-a071d5fcfeee4cc0ac58a4e0cf1968c8c92ff080.tar.bz2 mpv-a071d5fcfeee4cc0ac58a4e0cf1968c8c92ff080.tar.xz |
input: add "async" flag
Obviously, this has no effect on commands which do not support this
explicitly. A later commit will enable this for screenshots.
Also add some wording on mpv_command_async(), which has nothing to do
with this. Having a more elegant, unified behavior would be nice. But
the API function was not created for this - it's merely for running
commands _synchronously_ on the core, but without blocking the client
API caller (if the API user consistently uses only async functions).
Diffstat (limited to 'input/input.h')
-rw-r--r-- | input/input.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/input/input.h b/input/input.h index fb928e0808..dfc14078f3 100644 --- a/input/input.h +++ b/input/input.h @@ -34,6 +34,7 @@ enum mp_cmd_flags { MP_ON_OSD_MSG = 4, // force a message, if applicable MP_EXPAND_PROPERTIES = 8, // expand strings as properties MP_ALLOW_REPEAT = 16, // if used as keybinding, allow key repeat + MP_ASYNC_CMD = 32, MP_ON_OSD_FLAGS = MP_ON_OSD_NO | MP_ON_OSD_AUTO | MP_ON_OSD_BAR | MP_ON_OSD_MSG, |