aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/representation.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-05 18:21:48 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-05 18:21:48 -0400
commitb6715f376f5ea3efb58146c58924dcc7b1536181 (patch)
treee1213eb0678619a74b1ba57153827d58b645c48a /nexgb/xgbgen/representation.go
parent4a7b05be36b96134b4dae3ca385e9bfbb797d531 (diff)
downloadhaven-b6715f376f5ea3efb58146c58924dcc7b1536181.tar.gz
haven-b6715f376f5ea3efb58146c58924dcc7b1536181.tar.xz
haven-b6715f376f5ea3efb58146c58924dcc7b1536181.zip
fixing bugs related mostly to extension handling
Diffstat (limited to 'nexgb/xgbgen/representation.go')
-rw-r--r--nexgb/xgbgen/representation.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/nexgb/xgbgen/representation.go b/nexgb/xgbgen/representation.go
index be7accd..62a3eb2 100644
--- a/nexgb/xgbgen/representation.go
+++ b/nexgb/xgbgen/representation.go
@@ -3,6 +3,7 @@ package main
import (
"fmt"
"log"
+ "strings"
"unicode"
)
@@ -41,7 +42,11 @@ type Request struct {
}
func (r *Request) Initialize(p *Protocol) {
- r.srcName = SrcName(r.xmlName)
+ r.srcName = SrcName(p, r.xmlName)
+ if p.Name != "xproto" {
+ r.srcName = strings.Title(strings.ToLower(p.Name)) + r.srcName
+ }
+
if r.Reply != nil {
r.Reply.Initialize(p)
}