mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
Remove transitionary input_event_client component
With the transition of the input servers to event clients completed, this helper component is no longer needed. Issue #3845 Issue #3827
This commit is contained in:
parent
a2381c7e4c
commit
264f695373
@ -1,2 +0,0 @@
|
||||
SRC_DIR = src/app/input_event_client
|
||||
include $(GENODE_DIR)/repos/base/recipes/src/content.inc
|
@ -1 +0,0 @@
|
||||
2020-07-16 e6f7f44533e117edd6eb6c79d271ccacef345bb1
|
@ -1,4 +0,0 @@
|
||||
base
|
||||
os
|
||||
event_session
|
||||
input_session
|
@ -1,48 +0,0 @@
|
||||
/*
|
||||
* \brief Application for connecting an input server with an event server
|
||||
* \author Norman Feske
|
||||
* \date 2020-07-16
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2020 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.
|
||||
*/
|
||||
|
||||
/* Genode includes */
|
||||
#include <event_session/connection.h>
|
||||
#include <input_session/connection.h>
|
||||
#include <base/component.h>
|
||||
|
||||
namespace Input_event_client {
|
||||
using namespace Genode;
|
||||
struct Main;
|
||||
}
|
||||
|
||||
|
||||
struct Input_event_client::Main
|
||||
{
|
||||
Env &_env;
|
||||
|
||||
Input::Connection _input { _env };
|
||||
Event::Connection _event { _env };
|
||||
|
||||
Signal_handler<Main> _input_handler { _env.ep(), *this, &Main::_handle_input };
|
||||
|
||||
void _handle_input()
|
||||
{
|
||||
_event.with_batch([&] (Event::Session_client::Batch &batch) {
|
||||
_input.for_each_event([&] (Input::Event const &event) {
|
||||
batch.submit(event); }); });
|
||||
}
|
||||
|
||||
Main(Env &env) : _env(env) { _input.sigh(_input_handler); }
|
||||
};
|
||||
|
||||
|
||||
void Component::construct(Genode::Env &env)
|
||||
{
|
||||
static Input_event_client::Main inst(env);
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
TARGET = input_event_client
|
||||
SRC_CC = main.cc
|
||||
LIBS = base
|
Loading…
x
Reference in New Issue
Block a user