2
0
mirror of synced 2025-02-24 15:28:28 +00:00
mobile/bind/testdata/interfaces.go.golden
David Crawshaw 9f144f9410 go.mobile/bind: language binding generator
Details: http://golang.org/s/gobind

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/118240044
2014-07-31 15:09:13 -04:00

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)
}