summaryrefslogtreecommitdiffstats
path: root/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-19 16:44:33 +0200
committerwm4 <wm4@nowhere>2014-10-19 20:44:29 +0200
commitf4c589418c7d8a7dbcfb2f25fd409f424d2ae805 (patch)
tree30f49928531bbd972a2d71dc8cec767f79baef9e /input/input.h
parentc854ce934ec615bc04fe47f6c139a6a152aba8c1 (diff)
downloadmpv-f4c589418c7d8a7dbcfb2f25fd409f424d2ae805.tar.bz2
mpv-f4c589418c7d8a7dbcfb2f25fd409f424d2ae805.tar.xz
ipc: decouple from MPContext
Just a minor refactor to keep unneeded dependencies on the core low.
Diffstat (limited to 'input/input.h')
-rw-r--r--input/input.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/input/input.h b/input/input.h
index 877f79a0e6..8e6edcfa02 100644
--- a/input/input.h
+++ b/input/input.h
@@ -250,10 +250,16 @@ bool mp_input_use_alt_gr(struct input_ctx *ictx);
// Like mp_input_parse_cmd_strv, but also run the command.
void mp_input_run_cmd(struct input_ctx *ictx, const char **cmd);
+void mp_input_set_repeat_info(struct input_ctx *ictx, int rate, int delay);
+
void mp_input_pipe_add(struct input_ctx *ictx, const char *filename);
void mp_input_joystick_add(struct input_ctx *ictx, char *dev);
void mp_input_lirc_add(struct input_ctx *ictx, char *lirc_configfile);
-void mp_input_set_repeat_info(struct input_ctx *ictx, int rate, int delay);
+struct mp_ipc_ctx;
+struct mp_client_api;
+struct mp_ipc_ctx *mp_init_ipc(struct mp_client_api *client_api,
+ struct mpv_global *global);
+void mp_uninit_ipc(struct mp_ipc_ctx *ctx);
#endif /* MPLAYER_INPUT_H */