co_usb
Loading...
Searching...
No Matches
flags.hpp
Go to the documentation of this file.
1
6
#pragma once
7
8
#include "
co_usb/detail/flag_type.hpp
"
9
#include <libusb.h>
10
11
namespace
co_usb::hotplug
12
{
13
19
using
event_type
=
detail::flag_type<libusb_hotplug_event, struct hotplug_event_t>
;
20
26
using
flag_type
=
detail::flag_type<libusb_hotplug_flag, struct hotplug_flag_t>
;
27
33
namespace
events
34
{
35
constexpr
event_type
arrived
{LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED};
36
constexpr
event_type
left
{LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT};
37
}
// namespace events
38
44
namespace
flags
45
{
46
constexpr
flag_type
none
{LIBUSB_HOTPLUG_NO_FLAGS};
47
constexpr
flag_type
enumerate
{LIBUSB_HOTPLUG_ENUMERATE};
48
};
// namespace flags
49
50
}
// namespace co_usb::hotplug
flag_type.hpp
co_usb::hotplug::events::left
constexpr event_type left
Definition
flags.hpp:36
co_usb::hotplug::events::arrived
constexpr event_type arrived
Definition
flags.hpp:35
co_usb::hotplug::flags::enumerate
constexpr flag_type enumerate
Definition
flags.hpp:47
co_usb::hotplug::flags::none
constexpr flag_type none
Definition
flags.hpp:46
co_usb::hotplug
Definition
hotplug_awaitable.hpp:18
co_usb::detail::flag_type< libusb_hotplug_event, struct hotplug_event_t >
include
co_usb
hotplug
flags.hpp
Generated by
1.9.8