co_usb
Loading...
Searching...
No Matches
device_handle_source.hpp File Reference
#include <concepts>
#include <libusb.h>
#include <type_traits>
#include <utility>
Include dependency graph for device_handle_source.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  co_usb
 
namespace  co_usb::detail
 

Concepts

concept  co_usb::detail::DeviceHandlePointer
 A type which can provide libusb_device_handle *.
 
concept  co_usb::detail::DeviceHandleSource
 A type which can provide a co_usb::detail::DeviceHandlePointer.
 

Functions

template<DeviceHandlePointer Ty>
auto co_usb::detail::device_handle_of (Ty &&devh) -> libusb_device_handle *
 Obtains a libusb_device_handle * from a co_usb::detail::DeviceHandlePointer.