From 264f695373333821f9c795c2e2a4da076ad1a220 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 13 Aug 2020 17:05:17 +0200 Subject: [PATCH] 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 --- .../recipes/src/input_event_client/content.mk | 2 - repos/os/recipes/src/input_event_client/hash | 1 - .../recipes/src/input_event_client/used_apis | 4 -- repos/os/src/app/input_event_client/main.cc | 48 ------------------- repos/os/src/app/input_event_client/target.mk | 3 -- 5 files changed, 58 deletions(-) delete mode 100644 repos/os/recipes/src/input_event_client/content.mk delete mode 100644 repos/os/recipes/src/input_event_client/hash delete mode 100644 repos/os/recipes/src/input_event_client/used_apis delete mode 100644 repos/os/src/app/input_event_client/main.cc delete mode 100644 repos/os/src/app/input_event_client/target.mk diff --git a/repos/os/recipes/src/input_event_client/content.mk b/repos/os/recipes/src/input_event_client/content.mk deleted file mode 100644 index ae87fc393e..0000000000 --- a/repos/os/recipes/src/input_event_client/content.mk +++ /dev/null @@ -1,2 +0,0 @@ -SRC_DIR = src/app/input_event_client -include $(GENODE_DIR)/repos/base/recipes/src/content.inc diff --git a/repos/os/recipes/src/input_event_client/hash b/repos/os/recipes/src/input_event_client/hash deleted file mode 100644 index 9ebc90d75a..0000000000 --- a/repos/os/recipes/src/input_event_client/hash +++ /dev/null @@ -1 +0,0 @@ -2020-07-16 e6f7f44533e117edd6eb6c79d271ccacef345bb1 diff --git a/repos/os/recipes/src/input_event_client/used_apis b/repos/os/recipes/src/input_event_client/used_apis deleted file mode 100644 index a2645a0156..0000000000 --- a/repos/os/recipes/src/input_event_client/used_apis +++ /dev/null @@ -1,4 +0,0 @@ -base -os -event_session -input_session diff --git a/repos/os/src/app/input_event_client/main.cc b/repos/os/src/app/input_event_client/main.cc deleted file mode 100644 index 085f87dccb..0000000000 --- a/repos/os/src/app/input_event_client/main.cc +++ /dev/null @@ -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 -#include -#include - -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
_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); -} diff --git a/repos/os/src/app/input_event_client/target.mk b/repos/os/src/app/input_event_client/target.mk deleted file mode 100644 index df2209809a..0000000000 --- a/repos/os/src/app/input_event_client/target.mk +++ /dev/null @@ -1,3 +0,0 @@ -TARGET = input_event_client -SRC_CC = main.cc -LIBS = base