summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-10-16 11:48:18 +0200
committerAlessandro Ghedini <alessandro@ghedini.me>2014-10-17 20:46:31 +0200
commit13039414f5fd00a6b20d2bbad9fd497c6e579d34 (patch)
treefe47451fd6bf3391a5bd33284e157ba403c4a12e /options
parentc01151e0bf09bfd6db1faeaffcebd3674ac5baa2 (diff)
downloadmpv-13039414f5fd00a6b20d2bbad9fd497c6e579d34.tar.bz2
mpv-13039414f5fd00a6b20d2bbad9fd497c6e579d34.tar.xz
input: implement JSON-based IPC protocol
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 3daecc125e..333f35911f 100644
--- a/options/options.c
+++ b/options/options.c
@@ -528,6 +528,8 @@ const m_option_t mp_opts[] = {
OPT_FLAG("idle", player_idle_mode, M_OPT_GLOBAL),
OPT_FLAG("input-terminal", consolecontrols, CONF_GLOBAL),
+ OPT_STRING("input-unix-socket", ipc_path, M_OPT_FILE),
+
OPT_SUBSTRUCT("screenshot", screenshot_image_opts, image_writer_conf, 0),
OPT_STRING("screenshot-template", screenshot_template, 0),
diff --git a/options/options.h b/options/options.h
index 189df712fd..a34f3d6042 100644
--- a/options/options.h
+++ b/options/options.h
@@ -284,6 +284,8 @@ typedef struct MPOpts {
// may be NULL if encoding is not compiled-in
struct encode_opts *encode_opts;
+
+ char *ipc_path;
} MPOpts;
extern const m_option_t mp_opts[];