summaryrefslogtreecommitdiffstats
path: root/player/command.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-03-26 23:40:25 +0100
committerwm4 <wm4@nowhere>2020-03-26 23:40:25 +0100
commit9bda301eb4d8aa75d435f24146c3a66ab74cafea (patch)
treef2d9fc03c108fdfc2ede50f91ac4468b7af88530 /player/command.h
parentca3492213035ac6299fc54803520ee9427595181 (diff)
downloadmpv-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/command.h')
-rw-r--r--player/command.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/command.h b/player/command.h
index 1b3154394a..17e0726b0b 100644
--- a/player/command.h
+++ b/player/command.h
@@ -105,9 +105,9 @@ enum {
bool mp_hook_test_completion(struct MPContext *mpctx, char *type);
void mp_hook_start(struct MPContext *mpctx, char *type);
-int mp_hook_continue(struct MPContext *mpctx, char *client, uint64_t id);
-void mp_hook_add(struct MPContext *mpctx, const char *client, const char *name,
- uint64_t user_id, int pri);
+int mp_hook_continue(struct MPContext *mpctx, int64_t client_id, uint64_t id);
+void mp_hook_add(struct MPContext *mpctx, char *client, int64_t client_id,
+ const char *name, uint64_t user_id, int pri);
void mark_seek(struct MPContext *mpctx);