From 9bda301eb4d8aa75d435f24146c3a66ab74cafea Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 26 Mar 2020 23:40:25 +0100 Subject: 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. --- player/client.h | 1 + 1 file changed, 1 insertion(+) (limited to 'player/client.h') 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); -- cgit v1.2.3