mobile/bind/testdata/interfaces.go.golden

44 lines
895 B
Plaintext

// Package go_interfaces is an autogenerated binder stub for package interfaces.
//
// File is generated by gobind. Do not edit.
package go_interfaces
import (
"code.google.com/p/go.mobile/bind/seq"
"interfaces"
)
func proxy_Add3(out, in *seq.Buffer) {
var param_r interfaces.I
param_r_ref := in.ReadRef()
if param_r_ref.Num < 0 {
param_r = param_r_ref.Get().(interfaces.I)
} else {
param_r = (*proxyI)(param_r_ref)
}
res := interfaces.Add3(param_r)
out.WriteInt32(res)
}
const (
proxyIDescriptor = "go.interfaces.I"
proxyIRandCode = 0x10a
)
type proxyI seq.Ref
func (p *proxyI) Rand() (res_0 int32) {
out := new(seq.Buffer)
seq.Transact((*seq.Ref)(p), proxyIRandCode, out)
}
func proxy_Seven(out, in *seq.Buffer) {
res := interfaces.Seven()
out.WriteGoRef(res)
}
func init() {
seq.Register("interfaces", 1, proxy_Add3)
seq.Register("interfaces", 2, proxy_Seven)
}