aboutsummaryrefslogtreecommitdiff
path: root/lib/driver/rc.h
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-12-23 19:25:36 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-12-23 19:25:36 +0100
commit2b47f0d63cb4d1bfb1979bc777795a834763db9a (patch)
tree2b27042194c45b70f92bff7b8691ab2c761bee9a /lib/driver/rc.h
parente8eb8e9694379204f4b9143ca6b33db48809df7f (diff)
downloadenigma2-2b47f0d63cb4d1bfb1979bc777795a834763db9a.tar.gz
enigma2-2b47f0d63cb4d1bfb1979bc777795a834763db9a.zip
fix EVIOCGRAB ioctl
switch to non exclusive access on input devices when call eRCInput::lock (i.e. this fixes no more working Tuxtxt plugin) remove some incorrect code eRCInput::lock now no more returns a device handle .. this is not possible this way..
Diffstat (limited to 'lib/driver/rc.h')
-rw-r--r--lib/driver/rc.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/driver/rc.h b/lib/driver/rc.h
index ef0588c4..52909468 100644
--- a/lib/driver/rc.h
+++ b/lib/driver/rc.h
@@ -53,6 +53,7 @@ public:
* \param key The key to get the description for.
* \result User readable description of given key.
*/
+ virtual void setExclusive(bool b) { };
};
/**
@@ -89,6 +90,7 @@ public:
~eRCDriver();
void enable(int en) { enabled=en; }
+ virtual void setExclusive(bool) { }
};
class eRCShortDriver: public eRCDriver
@@ -174,7 +176,6 @@ public:
class eRCInput: public Object
{
int locked;
- int handle;
static eRCInput *instance;
int keyboardMode;
#ifdef SWIG
@@ -200,8 +201,6 @@ public:
void close();
bool open();
- void setFile(int handle);
-
/* This is only relevant for "keyboard"-styled input devices,
i.e. not plain remote controls. It's up to the input device
driver to decide wheter an input device is a keyboard or
@@ -238,7 +237,7 @@ public:
void setKeyboardMode(int mode) { keyboardMode = mode; }
int getKeyboardMode() { return keyboardMode; }
static eRCInput *getInstance() { return instance; }
- int lock();
+ void lock();
void unlock();
int islocked() { return locked; }
};