aboutsummaryrefslogtreecommitdiff
path: root/nexgb/auto_xproto.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-06 03:06:48 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-06 03:06:48 -0400
commit135cee57610cccd10009b264cce7fbcd5af367cb (patch)
treeaa4bb450d28eff241e35978233613436edafe045 /nexgb/auto_xproto.go
parent70ebcf5178018a31378367f67542fc89980e62a2 (diff)
downloadhaven-135cee57610cccd10009b264cce7fbcd5af367cb.tar.gz
haven-135cee57610cccd10009b264cce7fbcd5af367cb.tar.xz
haven-135cee57610cccd10009b264cce7fbcd5af367cb.zip
auto-generated Go code ftw. ~65,000 lines. woooheee
Diffstat (limited to 'nexgb/auto_xproto.go')
-rw-r--r--nexgb/auto_xproto.go36
1 files changed, 18 insertions, 18 deletions
diff --git a/nexgb/auto_xproto.go b/nexgb/auto_xproto.go
index 32fa6dd..edee988 100644
--- a/nexgb/auto_xproto.go
+++ b/nexgb/auto_xproto.go
@@ -1,10 +1,12 @@
package xgb
/*
- This file was generated by xproto.xml on May 5 2012 5:43:45pm EDT.
+ This file was generated by xproto.xml on May 6 2012 3:00:45am EDT.
This file is automatically generated. Edit at your peril!
*/
+// Skipping definition for base type 'Int16'
+
// Skipping definition for base type 'Int32'
// Skipping definition for base type 'Void'
@@ -29,8 +31,6 @@ package xgb
// Skipping definition for base type 'Card8'
-// Skipping definition for base type 'Int16'
-
const (
VisualClassStaticGray = 0
VisualClassGrayScale = 1
@@ -2417,15 +2417,15 @@ func HostListSize(list []Host) int {
// NewClientMessageDataUnionData16(Data16 []uint16) ClientMessageDataUnion
// NewClientMessageDataUnionData32(Data32 []uint32) ClientMessageDataUnion
type ClientMessageDataUnion struct {
- Data8 []byte // size: pad(20)
- Data16 []uint16 // size: pad(20)
- Data32 []uint32 // size: pad(20)
+ Data8 []byte // size: 20
+ Data16 []uint16 // size: 20
+ Data32 []uint32 // size: 20
}
// Union constructor for ClientMessageDataUnion for field Data8.
func NewClientMessageDataUnionData8(Data8 []byte) ClientMessageDataUnion {
var b int
- buf := make([]byte, pad(20))
+ buf := make([]byte, 20)
copy(buf[b:], Data8[:20])
b += pad(int(20))
@@ -2462,7 +2462,7 @@ func NewClientMessageDataUnionData8(Data8 []byte) ClientMessageDataUnion {
// Union constructor for ClientMessageDataUnion for field Data16.
func NewClientMessageDataUnionData16(Data16 []uint16) ClientMessageDataUnion {
var b int
- buf := make([]byte, pad(20))
+ buf := make([]byte, 20)
for i := 0; i < int(10); i++ {
Put16(buf[b:], Data16[i])
@@ -2502,7 +2502,7 @@ func NewClientMessageDataUnionData16(Data16 []uint16) ClientMessageDataUnion {
// Union constructor for ClientMessageDataUnion for field Data32.
func NewClientMessageDataUnionData32(Data32 []uint32) ClientMessageDataUnion {
var b int
- buf := make([]byte, pad(20))
+ buf := make([]byte, 20)
for i := 0; i < int(5); i++ {
Put32(buf[b:], Data32[i])
@@ -2564,7 +2564,7 @@ func ReadClientMessageDataUnion(buf []byte, v *ClientMessageDataUnion) int {
}
b = pad(b)
- return pad(20)
+ return 20
}
// Union list read ClientMessageDataUnion
@@ -2581,7 +2581,7 @@ func ReadClientMessageDataUnionList(buf []byte, dest []ClientMessageDataUnion) i
// Each field in a union must contain the same data.
// So simply pick the first field and write that to the wire.
func (v ClientMessageDataUnion) Bytes() []byte {
- buf := make([]byte, pad(20))
+ buf := make([]byte, 20)
b := 0
copy(buf[b:], v.Data8[:20])
@@ -3285,7 +3285,7 @@ func init() {
const KeymapNotify = 11
type KeymapNotifyEvent struct {
- Keys []byte // size: pad(31)
+ Keys []byte // size: 32
}
// Event read KeymapNotify
@@ -7938,7 +7938,7 @@ func (c *Conn) convertSelectionRequest(Requestor Id, Selection Id, Target Id, Pr
}
// Request SendEvent
-// size: pad((12 + pad(32)))
+// size: 44
type SendEventCookie struct {
*cookie
}
@@ -7962,7 +7962,7 @@ func (cook SendEventCookie) Check() error {
// Write request to wire for SendEvent
func (c *Conn) sendEventRequest(Propagate bool, Destination Id, EventMask uint32, Event string) []byte {
- size := pad((12 + pad(32)))
+ size := 44
b := 0
buf := make([]byte, size)
@@ -9200,12 +9200,12 @@ func (c *Conn) QueryKeymapUnchecked() QueryKeymapCookie {
}
// Request reply for QueryKeymap
-// size: (8 + pad(32))
+// size: 40
type QueryKeymapReply struct {
Sequence uint16
Length uint32
// padding: 1 bytes
- Keys []byte // size: pad(32)
+ Keys []byte // size: 32
}
// Waits and reads reply data from request QueryKeymap
@@ -13267,7 +13267,7 @@ func (c *Conn) GetKeyboardControlUnchecked() GetKeyboardControlCookie {
}
// Request reply for GetKeyboardControl
-// size: (20 + pad(32))
+// size: 52
type GetKeyboardControlReply struct {
Sequence uint16
Length uint32
@@ -13278,7 +13278,7 @@ type GetKeyboardControlReply struct {
BellPitch uint16
BellDuration uint16
// padding: 2 bytes
- AutoRepeats []byte // size: pad(32)
+ AutoRepeats []byte // size: 32
}
// Waits and reads reply data from request GetKeyboardControl