Permalink
Browse files
instance: make name pcpString to support mmv2
- Loading branch information...
Showing
with
3 additions
and
3 deletions.
-
+3
−3
instance.go
|
|
@@ -5,7 +5,7 @@ type Instances map[string]interface{} |
|
|
|
|
|
// pcpInstance wraps a PCP compatible Instance
|
|
|
type pcpInstance struct {
|
|
|
- name string
|
|
|
+ name *pcpString
|
|
|
id uint32
|
|
|
offset int
|
|
|
}
|
|
|
@@ -17,10 +17,10 @@ type pcpInstance struct { |
|
|
// but instead added using the AddInstance method of InstanceDomain
|
|
|
func newpcpInstance(name string) *pcpInstance {
|
|
|
return &pcpInstance{
|
|
|
- name, hash(name, 0), 0,
|
|
|
+ newpcpString(name), hash(name, 0), 0,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (i *pcpInstance) String() string {
|
|
|
- return "Instance: " + i.name
|
|
|
+ return "Instance: " + i.name.val
|
|
|
}
|
0 comments on commit
1c276a6