co_usb
Loading...
Searching...
No Matches
handler_service.hpp File Reference

Capy execution_context service wrapping a libusb event handler. More...

#include "co_usb/ev/any_event_handler.hpp"
#include "co_usb/ev/detail/event_handler.hpp"
#include "co_usb/ev/event_handler_ref.hpp"
#include "co_usb/usb_error.hpp"
#include <boost/capy/ex/execution_context.hpp>
#include <boost/capy/ex/executor_ref.hpp>
#include <concepts>
#include <libusb.h>
#include <span>
#include <stdexcept>
#include <stop_token>
#include <system_error>
#include <utility>
Include dependency graph for handler_service.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  co_usb::ev::detail::handler_service
 Execution context service that owns a libusb context and an event handler. More...
 

Namespaces

namespace  co_usb
 
namespace  co_usb::ev
 
namespace  co_usb::ev::detail
 

Functions

auto co_usb::ev::detail::get_handler_service (boost::capy::executor_ref exec) -> handler_service &
 Retrieve the handler_service from a given executor.
 
auto co_usb::ev::detail::nothrow_get_handler_service (boost::capy::executor_ref exec) -> handler_service *
 Retrieve the handler_service from a given executor.
 

Detailed Description

Capy execution_context service wrapping a libusb event handler.