diff options
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; }; }; |