mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-16 06:08:16 +00:00
@ -38,26 +38,13 @@ class Input::Session_component : public Genode::Rpc_object<Input::Session>
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* \param env Env containing local region map
|
||||
* \param ram Ram session at which to allocate session buffer
|
||||
* \param ram allocator for the session buffer
|
||||
*/
|
||||
Session_component(Genode::Env &env, Genode::Ram_session &ram)
|
||||
Session_component(Genode::Env &env, Genode::Ram_allocator &ram)
|
||||
:
|
||||
_ds(ram, env.rm(), Event_queue::QUEUE_SIZE*sizeof(Input::Event))
|
||||
{ }
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* \noapi
|
||||
* \deprecated
|
||||
*/
|
||||
Session_component() __attribute__((deprecated))
|
||||
: _ds(*Genode::env_deprecated()->ram_session(),
|
||||
*Genode::env_deprecated()->rm_session(),
|
||||
Event_queue::QUEUE_SIZE*sizeof(Input::Event))
|
||||
{ }
|
||||
|
||||
/**
|
||||
* Return reference to event queue of the session
|
||||
*/
|
||||
@ -85,11 +72,6 @@ class Input::Session_component : public Genode::Rpc_object<Input::Session>
|
||||
|
||||
bool pending() const override { return !_event_queue.empty(); }
|
||||
|
||||
/*
|
||||
* \deprecated use 'pending' instead
|
||||
*/
|
||||
bool is_pending() const { return pending(); }
|
||||
|
||||
int flush() override
|
||||
{
|
||||
Input::Event *dst = _ds.local_addr<Input::Event>();
|
||||
|
Reference in New Issue
Block a user