From 28a511253284a7be082d6c41e40aa2172b675263 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch
Date: Fri, 21 Sep 2018 08:37:21 +0200 Subject: nexgb: export {Major,Minor}Version for extensions --- nexgb/xgbgen/context.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nexgb/xgbgen') diff --git a/nexgb/xgbgen/context.go b/nexgb/xgbgen/context.go index 579c480..32dee58 100644 --- a/nexgb/xgbgen/context.go +++ b/nexgb/xgbgen/context.go @@ -101,6 +101,12 @@ func (c *Context) Morph(xmlBytes []byte) { if c.protocol.isExt() { xname := c.protocol.ExtXName + c.Putln("const (") + c.Putln("MajorVersion = %s", c.protocol.MajorVersion) + c.Putln("MinorVersion = %s", c.protocol.MinorVersion) + c.Putln(")") + c.Putln("") + c.Putln("// Init must be called before using the %s extension.", xname) c.Putln("func Init(c *xgb.Conn) error {") -- cgit v1.2.3-70-g09d2