summaryrefslogtreecommitdiffstats
path: root/src/device.h
diff options
context:
space:
mode:
authorGravatar Giuseppe Piscitelli2026-10-07 17:09:50 +0200
committerGravatar Nikias Bassen2026-11-22 18:20:36 +0100
commit7bcdc4104da6db55af3275da3e0ec86996c0f6ab (patch)
treeff29de2d9e07d077562af0a74496df8a34d43981 /src/device.h
parent8fbdb7a82034c3c96c0b7547f54302e2a5978465 (diff)
downloadusbmuxd-7bcdc4104da6db55af3275da3e0ec86996c0f6ab.tar.gz
usbmuxd-7bcdc4104da6db55af3275da3e0ec86996c0f6ab.tar.bz2
preflight: serialize device visibility and notifications
Publish device visibility and the attached notification under device_list_mutex, then acquire client_list_mutex in the same order as device removal. Do not notify clients if preflight completes after the device has disappeared. Assisted-by: OpenAI Codex
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.h b/src/device.h
index 85703e4..f4a44e2 100644
--- a/src/device.h
+++ b/src/device.h
@@ -40,7 +40,7 @@ int device_start_connect(int device_id, uint16_t port, struct mux_client *client
void device_client_process(int device_id, struct mux_client *client, short events);
void device_abort_connect(int device_id, struct mux_client *client);
-void device_set_visible(int device_id);
+void device_set_visible(struct device_info *info);
void device_set_preflight_cb_data(int device_id, void* data);
int device_get_count(int include_hidden);