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/command.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/command.h')
-rw-r--r-- | player/command.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/player/command.h b/player/command.h index a676709851..8047fd747a 100644 --- a/player/command.h +++ b/player/command.h @@ -34,19 +34,7 @@ int mp_property_do(const char* name, int action, void* val, const struct m_option *mp_get_property_list(void); -enum mp_event { - MP_EVENT_NONE, - MP_EVENT_TICK, - MP_EVENT_PROPERTY, // char*, property that is changed - MP_EVENT_TRACKS_CHANGED, - MP_EVENT_START_FILE, - MP_EVENT_PLAYBACK_START, - MP_EVENT_END_FILE, -}; - -void mp_notify(struct MPContext *mpctx, enum mp_event event, void *arg); -void mp_notify_property(struct MPContext *mpctx, const char *property); - +void mp_notify(struct MPContext *mpctx, int event, void *arg); void mp_flush_events(struct MPContext *mpctx); #endif /* MPLAYER_COMMAND_H */ |