summaryrefslogtreecommitdiffstats
path: root/player/core.h
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 /player/core.h
parentc01151e0bf09bfd6db1faeaffcebd3674ac5baa2 (diff)
downloadmpv-13039414f5fd00a6b20d2bbad9fd497c6e579d34.tar.bz2
mpv-13039414f5fd00a6b20d2bbad9fd497c6e579d34.tar.xz
input: implement JSON-based IPC protocol
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h
index 4f88710081..2d4c22434b 100644
--- a/player/core.h
+++ b/player/core.h
@@ -345,6 +345,8 @@ typedef struct MPContext {
struct command_ctx *command_ctx;
struct encode_lavc_context *encode_lavc_ctx;
struct mp_nav_state *nav_state;
+
+ void *ipc_ctx;
} MPContext;
// audio.c
@@ -376,6 +378,10 @@ void mp_nav_user_input(struct MPContext *mpctx, char *command);
void mp_handle_nav(struct MPContext *mpctx);
int mp_nav_in_menu(struct MPContext *mpctx);
+// ipc.c
+void mp_init_ipc(struct MPContext *mpctx);
+void mp_uninit_ipc(struct MPContext *mpctx);
+
// loadfile.c
void uninit_player(struct MPContext *mpctx, unsigned int mask);
struct track *mp_add_subtitles(struct MPContext *mpctx, char *filename);