Changeset 91173333 in mainline for uspace/lib/usbdev
- Timestamp:
- 2018-01-13T21:36:13Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- edc51615
- Parents:
- 8a0c52a
- Location:
- uspace/lib/usbdev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/driver.h
r8a0c52a r91173333 46 46 /** Callback when a device is about to be removed from the system. */ 47 47 int (*device_remove)(usb_device_t *); 48 /** Callback when a device has just been removed from the system (optional). */49 int (*device_removed)(usb_device_t *);50 48 /** Callback when a device was removed from the system. */ 51 49 int (*device_gone)(usb_device_t *); -
uspace/lib/usbdev/src/driver.c
r8a0c52a r91173333 94 94 return ret; 95 95 96 /* Notify the driver after endpoints were unregistered. */97 usb_device_destroy_pipes(usb_dev);98 if (driver->ops->device_removed != NULL) {99 ret = driver->ops->device_removed(usb_dev);100 if (ret != EOK)101 return ret;102 }103 104 96 usb_device_destroy_ddf(gen_dev); 105 97 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.