2014-07-31 19:09:13 +00:00
|
|
|
// Package go_interfaces is an autogenerated binder stub for package interfaces.
|
2014-11-10 18:46:47 +00:00
|
|
|
// gobind -lang=go interfaces
|
2014-07-31 19:09:13 +00:00
|
|
|
//
|
|
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
package go_interfaces
|
|
|
|
|
|
|
|
import (
|
2014-11-10 18:46:47 +00:00
|
|
|
"golang.org/x/mobile/bind/seq"
|
2014-07-31 19:09:13 +00:00
|
|
|
"interfaces"
|
|
|
|
)
|
|
|
|
|
|
|
|
func proxy_Add3(out, in *seq.Buffer) {
|
|
|
|
var param_r interfaces.I
|
|
|
|
param_r_ref := in.ReadRef()
|
2015-01-06 18:50:43 +00:00
|
|
|
if param_r_ref.Num < 0 { // go object
|
2014-07-31 19:09:13 +00:00
|
|
|
param_r = param_r_ref.Get().(interfaces.I)
|
2015-01-06 18:50:43 +00:00
|
|
|
} else { // foreign object
|
2014-07-31 19:09:13 +00:00
|
|
|
param_r = (*proxyI)(param_r_ref)
|
|
|
|
}
|
|
|
|
res := interfaces.Add3(param_r)
|
|
|
|
out.WriteInt32(res)
|
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
|
|
|
proxyIDescriptor = "go.interfaces.I"
|
|
|
|
proxyIRandCode = 0x10a
|
|
|
|
)
|
|
|
|
|
2015-01-06 18:50:43 +00:00
|
|
|
func proxyIRand(out, in *seq.Buffer) {
|
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(interfaces.I)
|
|
|
|
res := v.Rand()
|
|
|
|
out.WriteInt32(res)
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
seq.Register(proxyIDescriptor, proxyIRandCode, proxyIRand)
|
|
|
|
}
|
|
|
|
|
2014-07-31 19:09:13 +00:00
|
|
|
type proxyI seq.Ref
|
|
|
|
|
2015-01-06 18:50:43 +00:00
|
|
|
func (p *proxyI) Rand() int32 {
|
|
|
|
in := new(seq.Buffer)
|
|
|
|
out := seq.Transact((*seq.Ref)(p), proxyIRandCode, in)
|
|
|
|
res_0 := out.ReadInt32()
|
|
|
|
return res_0
|
2014-07-31 19:09:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
|
|
|
}
|