Fixes and improvements (#616)

This commit is contained in:
Ken Van Hoeylandt
2026-08-18 20:43:07 +02:00
committed by GitHub
parent f943c4dd69
commit b03759a111
141 changed files with 899 additions and 221 deletions
@@ -8,6 +8,7 @@ struct Device;
enum DeviceEvent {
DEVICE_EVENT_STARTED,
DEVICE_EVENT_STOPPING,
DEVICE_EVENT_STOPPED,
};
+2
View File
@@ -256,6 +256,8 @@ error_t device_stop(Device* device) {
internal->state.stopping = true;
unlock_internal(internal);
device_listener_notify(device, DEVICE_EVENT_STOPPING);
error_t unbind_error = driver_unbind(internal->driver, device);
lock_internal(internal);