From f4c589418c7d8a7dbcfb2f25fd409f424d2ae805 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 19 Oct 2014 16:44:33 +0200 Subject: ipc: decouple from MPContext Just a minor refactor to keep unneeded dependencies on the core low. --- input/input.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'input/input.h') 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 */ -- cgit v1.2.3