Remove unneeded input channel class
This commit is contained in:
parent
da971a88c3
commit
4abe483ac6
3 changed files with 0 additions and 90 deletions
|
|
@ -37,7 +37,6 @@ set(SOURCES
|
||||||
anbox/namespace_attacher.cpp
|
anbox/namespace_attacher.cpp
|
||||||
anbox/container.cpp
|
anbox/container.cpp
|
||||||
anbox/container_connector.cpp
|
anbox/container_connector.cpp
|
||||||
anbox/input_channel.cpp
|
|
||||||
|
|
||||||
anbox/common/fd.cpp
|
anbox/common/fd.cpp
|
||||||
anbox/common/fd_sets.h
|
anbox/common/fd_sets.h
|
||||||
|
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
|
||||||
* under the terms of the GNU General Public License version 3, as published
|
|
||||||
* by the Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranties of
|
|
||||||
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "anbox/input_channel.h"
|
|
||||||
#include "anbox/logger.h"
|
|
||||||
|
|
||||||
#include <boost/throw_exception.hpp>
|
|
||||||
|
|
||||||
#include <stdexcept>
|
|
||||||
|
|
||||||
namespace anbox {
|
|
||||||
InputChannel::InputChannel() :
|
|
||||||
dev_(nullptr) {
|
|
||||||
}
|
|
||||||
|
|
||||||
InputChannel::~InputChannel() {
|
|
||||||
}
|
|
||||||
|
|
||||||
void InputChannel::setup(int width, int height) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void InputChannel::push_event(const Event &event) {
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string InputChannel::dev_path() const {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
} // namespace anbox
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
|
||||||
* under the terms of the GNU General Public License version 3, as published
|
|
||||||
* by the Free Software Foundation.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranties of
|
|
||||||
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef ANBOX_INPUT_CHANNEL_H_
|
|
||||||
#define ANBOX_INPUT_CHANNEL_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
struct libevdev_uinput;
|
|
||||||
|
|
||||||
namespace anbox {
|
|
||||||
class InputChannel {
|
|
||||||
public:
|
|
||||||
InputChannel();
|
|
||||||
~InputChannel();
|
|
||||||
|
|
||||||
struct Event {
|
|
||||||
int type;
|
|
||||||
int code;
|
|
||||||
int value;
|
|
||||||
};
|
|
||||||
|
|
||||||
void setup(int width, int height);
|
|
||||||
void push_event(const Event &event);
|
|
||||||
|
|
||||||
std::string dev_path() const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
struct libevdev_uinput *dev_;
|
|
||||||
};
|
|
||||||
} // namespace anbox
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue