nexgb: export {Major,Minor}Version for extensions
This commit is contained in:
@@ -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 {")
|
||||
|
||||
Reference in New Issue
Block a user