RAII wrapper around libusb_device_handle*.
More...
#include <device_handle.hpp>
RAII wrapper around libusb_device_handle*.
- Note
- Satisfies detail::DeviceHandleSource.
Wraps device handle and ensures its lifetime via internal unique pointer. Destructor closes the device.
- See also
- co_usb::open_device
◆ device_handle() [1/3]
◆ device_handle() [2/3]
◆ device_handle() [3/3]
| co_usb::device_handle::device_handle |
( |
libusb_device_handle * |
devh | ) |
|
|
inlineexplicit |
◆ close()
| auto co_usb::device_handle::close |
( |
| ) |
|
|
inlinenoexcept |
◆ get()
| auto co_usb::device_handle::get |
( |
| ) |
const -> libusb_device_handle *
|
|
inlinenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ release()
| auto co_usb::device_handle::release |
( |
| ) |
-> libusb_device_handle *
|
|
inlinenoexcept |
◆ reset()
| auto co_usb::device_handle::reset |
( |
| ) |
|
|
inlinenoexcept |
The documentation for this struct was generated from the following file: