diff options
author | wm4 <wm4@nowhere> | 2014-02-10 21:01:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-10 21:01:35 +0100 |
commit | 88ae914b1ef2b76362c527985bd459b0d8226d45 (patch) | |
tree | fbab27d01347c98fd36348821fafc47037193810 /player/core.h | |
parent | c6166ff448432dc74c300933e5c93838d06c420a (diff) | |
download | mpv-88ae914b1ef2b76362c527985bd459b0d8226d45.tar.bz2 mpv-88ae914b1ef2b76362c527985bd459b0d8226d45.tar.xz |
Add a client API
Add a client API, which is intended to be a stable API to get some rough
control over the player. Basically, it reflects what can be done with
input.conf commands or the old slavemode. It will replace the old
slavemode (and enable the implementation of a new slave protocol).
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/player/core.h b/player/core.h index 556903b50d..d39ac64dab 100644 --- a/player/core.h +++ b/player/core.h @@ -140,12 +140,16 @@ enum { #define NUM_PTRACKS 2 typedef struct MPContext { + bool initialized; struct mpv_global *global; struct MPOpts *opts; struct mp_log *log; - struct mp_log *statusline; struct m_config *mconfig; struct input_ctx *input; + struct mp_client_api *clients; + struct mp_dispatch_queue *dispatch; + + struct mp_log *statusline; struct osd_state *osd; struct mp_osd_msg *osd_msg_stack; char *term_osd_text; @@ -385,6 +389,9 @@ void mp_set_playlist_entry(struct MPContext *mpctx, struct playlist_entry *e); void mp_play_files(struct MPContext *mpctx); // main.c +int mp_initialize(struct MPContext *mpctx); +struct MPContext *mp_create(void); +void mp_destroy(struct MPContext *mpctx); void mp_print_version(struct mp_log *log, int always); // misc.c |