diff options
author | Mathias Agopian <mathias@google.com> | 2012-09-19 17:31:36 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-09-20 17:13:58 -0700 |
commit | 148994e5f33ce240ff24ceb5bc0500b7f2001959 (patch) | |
tree | 501c488cce1e936a3f840f9e269acdaf999e4ea2 /include/gui | |
parent | 1604f777d11c40daae8ec91d8ea75625996bfbac (diff) | |
download | frameworks_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/gui')
-rw-r--r-- | include/gui/DisplayEventReceiver.h | 9 |
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; }; }; |