summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-09-19 17:31:36 -0700
committerMathias Agopian <mathias@google.com>2012-09-20 17:13:58 -0700
commit148994e5f33ce240ff24ceb5bc0500b7f2001959 (patch)
tree501c488cce1e936a3f840f9e269acdaf999e4ea2 /include
parent1604f777d11c40daae8ec91d8ea75625996bfbac (diff)
downloadframeworks_native-148994e5f33ce240ff24ceb5bc0500b7f2001959.zip
frameworks_native-148994e5f33ce240ff24ceb5bc0500b7f2001959.tar.gz
frameworks_native-148994e5f33ce240ff24ceb5bc0500b7f2001959.tar.bz2
We now report hotplug events to the framework
Change-Id: I2d6b7787d39e5929485a551e4982498c5053c211
Diffstat (limited to 'include')
-rw-r--r--include/gui/DisplayEventReceiver.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/gui/DisplayEventReceiver.h b/include/gui/DisplayEventReceiver.h
index e631cca..1117f95 100644
--- a/include/gui/DisplayEventReceiver.h
+++ b/include/gui/DisplayEventReceiver.h
@@ -40,7 +40,8 @@ class IDisplayEventConnection;
class DisplayEventReceiver {
public:
enum {
- DISPLAY_EVENT_VSYNC = 'vsyn'
+ DISPLAY_EVENT_VSYNC = 'vsyn',
+ DISPLAY_EVENT_HOTPLUG = 'plug'
};
struct Event {
@@ -54,9 +55,15 @@ public:
uint32_t count;
};
+ struct Hotplug {
+ int32_t id;
+ bool connected;
+ };
+
Header header;
union {
VSync vsync;
+ Hotplug hotplug;
};
};