2014-07-31 23:09:13 +04:00
|
|
|
// Package go_interfaces is an autogenerated binder stub for package interfaces.
|
2014-11-10 21:46:47 +03:00
|
|
|
// gobind -lang=go interfaces
|
2014-07-31 23:09:13 +04:00
|
|
|
//
|
|
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
package go_interfaces
|
|
|
|
|
|
|
|
import (
|
2014-11-10 21:46:47 +03:00
|
|
|
"golang.org/x/mobile/bind/seq"
|
2014-07-31 23:09:13 +04:00
|
|
|
"interfaces"
|
|
|
|
)
|
|
|
|
|
|
|
|
func proxy_Add3(out, in *seq.Buffer) {
|
|
|
|
var param_r interfaces.I
|
|
|
|
param_r_ref := in.ReadRef()
|
2015-01-06 21:50:43 +03:00
|
|
|
if param_r_ref.Num < 0 { // go object
|
2014-07-31 23:09:13 +04:00
|
|
|
param_r = param_r_ref.Get().(interfaces.I)
|
2015-01-06 21:50:43 +03:00
|
|
|
} else { // foreign object
|
2014-07-31 23:09:13 +04:00
|
|
|
param_r = (*proxyI)(param_r_ref)
|
|
|
|
}
|
|
|
|
res := interfaces.Add3(param_r)
|
|
|
|
out.WriteInt32(res)
|
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
2015-05-29 22:49:54 +03:00
|
|
|
proxyI_Descriptor = "go.interfaces.I"
|
|
|
|
proxyI_Rand_Code = 0x10a
|
2014-07-31 23:09:13 +04:00
|
|
|
)
|
|
|
|
|
2015-05-29 22:49:54 +03:00
|
|
|
func proxyI_Rand(out, in *seq.Buffer) {
|
2015-01-06 21:50:43 +03:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(interfaces.I)
|
|
|
|
res := v.Rand()
|
|
|
|
out.WriteInt32(res)
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2015-05-29 22:49:54 +03:00
|
|
|
seq.Register(proxyI_Descriptor, proxyI_Rand_Code, proxyI_Rand)
|
2015-01-06 21:50:43 +03:00
|
|
|
}
|
|
|
|
|
2014-07-31 23:09:13 +04:00
|
|
|
type proxyI seq.Ref
|
|
|
|
|
2015-01-06 21:50:43 +03:00
|
|
|
func (p *proxyI) Rand() int32 {
|
|
|
|
in := new(seq.Buffer)
|
2015-07-27 19:48:33 +03:00
|
|
|
out := seq.Transact((*seq.Ref)(p), "go.interfaces.I", proxyI_Rand_Code, in)
|
2015-01-06 21:50:43 +03:00
|
|
|
res_0 := out.ReadInt32()
|
|
|
|
return res_0
|
2014-07-31 23:09:13 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
func proxy_Seven(out, in *seq.Buffer) {
|
|
|
|
res := interfaces.Seven()
|
|
|
|
out.WriteGoRef(res)
|
|
|
|
}
|
|
|
|
|
2015-06-04 20:20:31 +03:00
|
|
|
const (
|
|
|
|
proxyWithParam_Descriptor = "go.interfaces.WithParam"
|
|
|
|
proxyWithParam_HasParam_Code = 0x10a
|
|
|
|
)
|
|
|
|
|
|
|
|
func proxyWithParam_HasParam(out, in *seq.Buffer) {
|
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(interfaces.WithParam)
|
|
|
|
param_p0 := in.ReadBool()
|
|
|
|
v.HasParam(param_p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
seq.Register(proxyWithParam_Descriptor, proxyWithParam_HasParam_Code, proxyWithParam_HasParam)
|
|
|
|
}
|
|
|
|
|
|
|
|
type proxyWithParam seq.Ref
|
|
|
|
|
|
|
|
func (p *proxyWithParam) HasParam(p0 bool) {
|
|
|
|
in := new(seq.Buffer)
|
|
|
|
in.WriteBool(p0)
|
2015-07-27 19:48:33 +03:00
|
|
|
seq.Transact((*seq.Ref)(p), "go.interfaces.WithParam", proxyWithParam_HasParam_Code, in)
|
2015-06-04 20:20:31 +03:00
|
|
|
}
|
|
|
|
|
2014-07-31 23:09:13 +04:00
|
|
|
func init() {
|
|
|
|
seq.Register("interfaces", 1, proxy_Add3)
|
|
|
|
seq.Register("interfaces", 2, proxy_Seven)
|
|
|
|
}
|