From 3e9ed4eac6a953b2616bcf129b515a857271acdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sat, 29 Sep 2018 21:42:23 +0200 Subject: xgbgen: process elements Most of XCB documentation now ends up in Go sources, although the end result is of mixed quality. --- nexgb/xgbgen/field.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'nexgb/xgbgen/field.go') diff --git a/nexgb/xgbgen/field.go b/nexgb/xgbgen/field.go index d6957b7..243cfb0 100644 --- a/nexgb/xgbgen/field.go +++ b/nexgb/xgbgen/field.go @@ -105,6 +105,7 @@ type SingleField struct { srcName string xmlName string Type Type + Comment string } func (f *SingleField) Initialize(p *Protocol) { @@ -255,10 +256,12 @@ func (f *ExprField) Initialize(p *Protocol) { // integers. The mask specifies which kinds of values are in the list. // (i.e., See ConfigureWindow, CreateWindow, ChangeWindowAttributes, etc.) type ValueField struct { - Parent interface{} - MaskType Type - MaskName string - ListName string + Parent interface{} + MaskType Type + MaskName string + ListName string + MaskComment string + ListComment string } func (f *ValueField) SrcName() string { @@ -324,6 +327,7 @@ type SwitchField struct { MaskName string Expr Expression Bitcases []*Bitcase + Comment string } func (f *SwitchField) SrcName() string { -- cgit v1.2.3