summaryrefslogtreecommitdiff
path: root/xgbgen/xml.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-05-07 04:09:19 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-05-07 04:09:19 -0400
commit8bcecd8ab592e67ade9cd728503581d5a84ca583 (patch)
tree4d550a9ca8b2b19af6d66b99233e0ecde4543df9 /xgbgen/xml.go
parentbe6362d05c9563b8085eba2b990a145101e9c99f (diff)
lots of docs and examples
Diffstat (limited to 'xgbgen/xml.go')
-rw-r--r--xgbgen/xml.go32
1 files changed, 16 insertions, 16 deletions
diff --git a/xgbgen/xml.go b/xgbgen/xml.go
index df21433..440d0a8 100644
--- a/xgbgen/xml.go
+++ b/xgbgen/xml.go
@@ -17,11 +17,11 @@ type XML struct {
// Types for all top-level elements.
// First are the simple ones.
- Imports XMLImports `xml:"import"`
- Enums []*XMLEnum `xml:"enum"`
- Xids []*XMLXid `xml:"xidtype"`
- XidUnions []*XMLXid `xml:"xidunion"`
- TypeDefs []*XMLTypeDef `xml:"typedef"`
+ Imports XMLImports `xml:"import"`
+ Enums []*XMLEnum `xml:"enum"`
+ Xids []*XMLXid `xml:"xidtype"`
+ XidUnions []*XMLXid `xml:"xidunion"`
+ TypeDefs []*XMLTypeDef `xml:"typedef"`
EventCopies []*XMLEventCopy `xml:"eventcopy"`
ErrorCopies []*XMLErrorCopy `xml:"errorcopy"`
@@ -93,21 +93,21 @@ type XMLErrorCopy struct {
}
type XMLStruct struct {
- Name string `xml:"name,attr"`
+ Name string `xml:"name,attr"`
Fields []*XMLField `xml:",any"`
}
type XMLUnion struct {
- Name string `xml:"name,attr"`
+ Name string `xml:"name,attr"`
Fields []*XMLField `xml:",any"`
}
type XMLRequest struct {
- Name string `xml:"name,attr"`
- Opcode int `xml:"opcode,attr"`
- Combine bool `xml:"combine-adjacent,attr"`
+ Name string `xml:"name,attr"`
+ Opcode int `xml:"opcode,attr"`
+ Combine bool `xml:"combine-adjacent,attr"`
Fields []*XMLField `xml:",any"`
- Reply *XMLReply `xml:"reply"`
+ Reply *XMLReply `xml:"reply"`
}
type XMLReply struct {
@@ -115,15 +115,15 @@ type XMLReply struct {
}
type XMLEvent struct {
- Name string `xml:"name,attr"`
- Number int `xml:"number,attr"`
- NoSequence bool `xml:"no-sequence-number,attr"`
+ Name string `xml:"name,attr"`
+ Number int `xml:"number,attr"`
+ NoSequence bool `xml:"no-sequence-number,attr"`
Fields []*XMLField `xml:",any"`
}
type XMLError struct {
- Name string `xml:"name,attr"`
- Number int `xml:"number,attr"`
+ Name string `xml:"name,attr"`
+ Number int `xml:"number,attr"`
Fields []*XMLField `xml:",any"`
}