diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-01-21 23:21:25 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-01-21 23:21:51 +0300 |
commit | 30b63c2f87982468384daa55baf8acb27df885f1 (patch) | |
tree | 8514a72b0e524b86cb848244d350cb06766c326e /overlay/overlay.h | |
parent | 295bc080b880d82d420769bb21a21cb0f174c66b (diff) |
socket-based overlay (WIP)
Diffstat (limited to 'overlay/overlay.h')
-rw-r--r-- | overlay/overlay.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/overlay/overlay.h b/overlay/overlay.h index 4d5e5c56b..baec50bf7 100644 --- a/overlay/overlay.h +++ b/overlay/overlay.h @@ -71,4 +71,28 @@ struct SharedMem { struct TextEntry texts[NUM_TEXTS]; }; +struct OverlayMsgHeader { + unsigned int uiMagic; + int iLength; + unsigned int uiType; +}; + +#define OVERLAY_MSGTYPE_INIT 0 +struct OverlayMsgInit { + unsigned int uiWidth; + unsigned int uiHeight; +}; + +#define OVERLAY_MSGTYPE_BLIT 1 +struct OverlayMsgBlit { + unsigned int x, y, w, h; +}; + +union OverlayMsgs { + char buffer[1]; + OverlayMsgHeader omh; + OverlayMsgInit omi; + OverlayMsgBlit omb; +}; + #endif |