diff options
author | wm4 <wm4@nowhere> | 2020-03-26 23:40:25 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-03-26 23:40:25 +0100 |
commit | 9bda301eb4d8aa75d435f24146c3a66ab74cafea (patch) | |
tree | f2d9fc03c108fdfc2ede50f91ac4468b7af88530 /player/client.h | |
parent | ca3492213035ac6299fc54803520ee9427595181 (diff) | |
download | mpv-9bda301eb4d8aa75d435f24146c3a66ab74cafea.tar.bz2 mpv-9bda301eb4d8aa75d435f24146c3a66ab74cafea.tar.xz |
command: use client IDs for hooks
Removes weird potential race conditions when a client is removed and a
new one with the same name is created.
Diffstat (limited to 'player/client.h')
-rw-r--r-- | player/client.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/client.h b/player/client.h index a8eae2d0c1..47af084cc5 100644 --- a/player/client.h +++ b/player/client.h @@ -24,6 +24,7 @@ bool mp_is_shutting_down(struct MPContext *mpctx); bool mp_clients_all_initialized(struct MPContext *mpctx); bool mp_client_exists(struct MPContext *mpctx, const char *client_name); +bool mp_client_id_exists(struct MPContext *mpctx, int64_t id); void mp_client_broadcast_event(struct MPContext *mpctx, int event, void *data); int mp_client_send_event(struct MPContext *mpctx, const char *client_name, uint64_t reply_userdata, int event, void *data); |