/**
* \brief USB session client implementation
* \author Sebastian Sumpf
* \author Stefan Kalkowski
* \date 2014-12-08
*/
/*
* Copyright (C) 2014-2024 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _INCLUDE__USB_SESSION__CLIENT_H_
#define _INCLUDE__USB_SESSION__CLIENT_H_
#include
#include
namespace Usb { struct Client; }
struct Usb::Client : Genode::Rpc_client
{
Client(Session_capability session)
: Rpc_client(session) { }
Rom_session_capability devices_rom() override {
return call(); }
Device_capability acquire_device(Device_name const &name) override {
return call(name); }
Device_capability acquire_single_device() override {
return call(); }
void release_device(Device_capability device) override {
call(device); }
};
#endif /* _INCLUDE__USB_SESSION__CLIENT_H_ */