summaryrefslogtreecommitdiff
path: root/xgb_help.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-04-29 03:38:29 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-04-29 03:38:29 -0400
commiteb4f8cde88068649a60c494168490cb66335944c (patch)
tree128604288a938c8465c4ba8f49bbf2aabdb7c2f5 /xgb_help.go
parent7d160ecc2dc688f032ef9e53a8a529821f445df9 (diff)
progress. still not working. this is incredibly difficult.
Diffstat (limited to 'xgb_help.go')
-rw-r--r--xgb_help.go32
1 files changed, 16 insertions, 16 deletions
diff --git a/xgb_help.go b/xgb_help.go
index adb97e0..acb35de 100644
--- a/xgb_help.go
+++ b/xgb_help.go
@@ -85,19 +85,19 @@ func (c *Conn) DefaultScreen() *ScreenInfo { return &c.Setup.Roots[c.defaultScre
// ClientMessageData holds the data from a client message,
// duplicated in three forms because Go doesn't have unions.
-type ClientMessageData struct {
- Data8 [20]byte
- Data16 [10]uint16
- Data32 [5]uint32
-}
-
-func getClientMessageData(b []byte, v *ClientMessageData) int {
- copy(v.Data8[:], b)
- for i := 0; i < 10; i++ {
- v.Data16[i] = get16(b[i*2:])
- }
- for i := 0; i < 5; i++ {
- v.Data32[i] = get32(b[i*4:])
- }
- return 20
-}
+// type ClientMessageData struct {
+ // Data8 [20]byte
+ // Data16 [10]uint16
+ // Data32 [5]uint32
+// }
+//
+// func getClientMessageData(b []byte, v *ClientMessageData) int {
+ // copy(v.Data8[:], b)
+ // for i := 0; i < 10; i++ {
+ // v.Data16[i] = get16(b[i*2:])
+ // }
+ // for i := 0; i < 5; i++ {
+ // v.Data32[i] = get32(b[i*4:])
+ // }
+ // return 20
+// }