diff options
author | wm4 <wm4@nowhere> | 2014-10-19 16:44:33 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-19 20:44:29 +0200 |
commit | f4c589418c7d8a7dbcfb2f25fd409f424d2ae805 (patch) | |
tree | 30f49928531bbd972a2d71dc8cec767f79baef9e /input/input.h | |
parent | c854ce934ec615bc04fe47f6c139a6a152aba8c1 (diff) | |
download | mpv-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.h | 8 |
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 */ |