summaryrefslogtreecommitdiffstats
path: root/player/command.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-31 04:19:41 +0200
committerwm4 <wm4@nowhere>2014-07-31 04:19:41 +0200
commitb4f24544bbfdd2bec765db08f5d745fadeb4d111 (patch)
treeba6aa91bdd52a0e8309af331c75a896fee23c7d1 /player/command.h
parentaaa90e1a337dac7f1ef0e8e289d50950a67c90a1 (diff)
downloadmpv-b4f24544bbfdd2bec765db08f5d745fadeb4d111.tar.bz2
mpv-b4f24544bbfdd2bec765db08f5d745fadeb4d111.tar.xz
client API: make "cache" property and similar observable
Achieve this by polling. Will be used by the OSC. Basically a bad hack - but the point is that the mpv core itself is in the best position to improve this later.
Diffstat (limited to 'player/command.h')
-rw-r--r--player/command.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/command.h b/player/command.h
index 846067b3bf..c9a07ff733 100644
--- a/player/command.h
+++ b/player/command.h
@@ -39,4 +39,7 @@ int mp_find_property_index(const char *property);
void mp_notify(struct MPContext *mpctx, int event, void *arg);
void mp_notify_property(struct MPContext *mpctx, const char *property);
+#define INTERNAL_EVENT_BASE 24
+#define MP_EVENT_CACHE_UPDATE (INTERNAL_EVENT_BASE + 0)
+
#endif /* MPLAYER_COMMAND_H */