summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJens Gulin <jens.gulin@sonyericsson.com>2010-06-22 22:21:57 +0200
committerJean-Baptiste Queru <jbq@google.com>2010-08-18 10:54:03 -0700
commit7dcaa584969253e32aec19d5bd40062704aaf95b (patch)
tree4ff97639615a9bdb26158343f51f24cf8f46f23f /include
parenta50e810d16eb7fdddc73b11fd1539614a5fda14a (diff)
downloadframeworks_native-7dcaa584969253e32aec19d5bd40062704aaf95b.zip
frameworks_native-7dcaa584969253e32aec19d5bd40062704aaf95b.tar.gz
frameworks_native-7dcaa584969253e32aec19d5bd40062704aaf95b.tar.bz2
Keep track of remaining fd when devices are removed
Sometimes the wrong fd was accessed when the device was addressed by device id. The earlier implementation assumed that two arrays were in sync but one of them was compacted when devices were removed. Instead of that dependency the device now keeps track of it's file descriptor. Change-Id: Ib0f320603aafb07ded354bc3687de9759c9068f2
Diffstat (limited to 'include')
-rw-r--r--include/ui/EventHub.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/EventHub.h b/include/ui/EventHub.h
index 3132941..3d42856 100644
--- a/include/ui/EventHub.h
+++ b/include/ui/EventHub.h
@@ -224,6 +224,7 @@ private:
uint8_t* keyBitmask;
KeyLayoutMap* layoutMap;
String8 keylayoutFilename;
+ int fd;
device_t* next;
device_t(int32_t _id, const char* _path, const char* name);