diff options
| author | jEzEk <[email protected]> | 2022-11-05 21:22:59 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-05 21:22:59 +0100 |
| commit | a57abb570aeba12f867c58afe22ce49ac5db4872 (patch) | |
| tree | 41f7f8fdc1ec903272515c18a0751041702da69e /xgbgen/translation.go | |
| parent | 7effddcf465f2b8e142c828c90951614922d9b32 (diff) | |
| parent | ba0b8dd42f220cde96737bbd61d87f1bc136824e (diff) | |
Merge pull request #10 from gen2brain/masterv1.1.0
Support for xcb-proto version 1.15.2, #issue 9
Diffstat (limited to 'xgbgen/translation.go')
| -rw-r--r-- | xgbgen/translation.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xgbgen/translation.go b/xgbgen/translation.go index f595e5f..d35fa88 100644 --- a/xgbgen/translation.go +++ b/xgbgen/translation.go @@ -325,12 +325,14 @@ func (x *XMLField) Translate(parent interface{}) Field { case "pad": return &PadField{ Bytes: x.Bytes, + Align: x.Align, } case "field": - return &SingleField{ + s := &SingleField{ xmlName: x.Name, Type: newTranslation(x.Type), } + return s case "list": return &ListField{ xmlName: x.Name, @@ -365,6 +367,8 @@ func (x *XMLField) Translate(parent interface{}) Field { swtch.Bitcases[i] = bitcase.Translate() } return swtch + case "required_start_align": + return &RequiredStartAlign{} } log.Panicf("Unrecognized field element: %s", x.XMLName.Local) |
