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 (
|
2016-02-18 11:27:33 +00:00
|
|
|
_seq "golang.org/x/mobile/bind/seq"
|
2014-07-31 19:09:13 +00:00
|
|
|
"interfaces"
|
|
|
|
)
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
func proxy_Add3(out, in *_seq.Buffer) {
|
2014-07-31 19:09:13 +00:00
|
|
|
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)
|
2016-02-18 11:27:33 +00:00
|
|
|
} else if param_r_ref.Num != _seq.NullRefNum { // foreign object
|
2014-07-31 19:09:13 +00:00
|
|
|
param_r = (*proxyI)(param_r_ref)
|
|
|
|
}
|
|
|
|
res := interfaces.Add3(param_r)
|
|
|
|
out.WriteInt32(res)
|
|
|
|
}
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
func proxy_CallErr(out, in *_seq.Buffer) {
|
2015-08-25 04:26:23 +00:00
|
|
|
var param_e interfaces.Error
|
|
|
|
param_e_ref := in.ReadRef()
|
|
|
|
if param_e_ref.Num < 0 { // go object
|
|
|
|
param_e = param_e_ref.Get().(interfaces.Error)
|
2016-02-18 11:27:33 +00:00
|
|
|
} else if param_e_ref.Num != _seq.NullRefNum { // foreign object
|
2015-08-25 04:26:23 +00:00
|
|
|
param_e = (*proxyError)(param_e_ref)
|
|
|
|
}
|
|
|
|
err := interfaces.CallErr(param_e)
|
|
|
|
if err == nil {
|
|
|
|
out.WriteString("")
|
|
|
|
} else {
|
|
|
|
out.WriteString(err.Error())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
|
|
|
proxyError_Descriptor = "go.interfaces.Error"
|
|
|
|
proxyError_Err_Code = 0x10a
|
|
|
|
)
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
func proxyError_Err(out, in *_seq.Buffer) {
|
2015-08-25 04:26:23 +00:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(interfaces.Error)
|
|
|
|
err := v.Err()
|
|
|
|
if err == nil {
|
|
|
|
out.WriteString("")
|
|
|
|
} else {
|
|
|
|
out.WriteString(err.Error())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2016-02-18 11:27:33 +00:00
|
|
|
_seq.Register(proxyError_Descriptor, proxyError_Err_Code, proxyError_Err)
|
2015-08-25 04:26:23 +00:00
|
|
|
}
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
type proxyError _seq.Ref
|
2015-08-25 04:26:23 +00:00
|
|
|
|
|
|
|
func (p *proxyError) Err() error {
|
2016-02-18 11:27:33 +00:00
|
|
|
in := new(_seq.Buffer)
|
|
|
|
out := _seq.Transact((*_seq.Ref)(p), "go.interfaces.Error", proxyError_Err_Code, in)
|
2015-08-25 04:26:23 +00:00
|
|
|
res_0 := out.ReadError()
|
|
|
|
return res_0
|
|
|
|
}
|
|
|
|
|
2014-07-31 19:09:13 +00:00
|
|
|
const (
|
2015-05-29 19:49:54 +00:00
|
|
|
proxyI_Descriptor = "go.interfaces.I"
|
|
|
|
proxyI_Rand_Code = 0x10a
|
2014-07-31 19:09:13 +00:00
|
|
|
)
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
func proxyI_Rand(out, in *_seq.Buffer) {
|
2015-01-06 18:50:43 +00:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(interfaces.I)
|
|
|
|
res := v.Rand()
|
|
|
|
out.WriteInt32(res)
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2016-02-18 11:27:33 +00:00
|
|
|
_seq.Register(proxyI_Descriptor, proxyI_Rand_Code, proxyI_Rand)
|
2015-01-06 18:50:43 +00:00
|
|
|
}
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
type proxyI _seq.Ref
|
2014-07-31 19:09:13 +00:00
|
|
|
|
2015-01-06 18:50:43 +00:00
|
|
|
func (p *proxyI) Rand() int32 {
|
2016-02-18 11:27:33 +00:00
|
|
|
in := new(_seq.Buffer)
|
|
|
|
out := _seq.Transact((*_seq.Ref)(p), "go.interfaces.I", proxyI_Rand_Code, in)
|
2015-01-06 18:50:43 +00:00
|
|
|
res_0 := out.ReadInt32()
|
|
|
|
return res_0
|
2014-07-31 19:09:13 +00:00
|
|
|
}
|
|
|
|
|
2015-08-26 16:28:14 +00:00
|
|
|
const (
|
|
|
|
proxyI1_Descriptor = "go.interfaces.I1"
|
|
|
|
proxyI1_J_Code = 0x10a
|
|
|
|
)
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
func proxyI1_J(out, in *_seq.Buffer) {
|
2015-08-26 16:28:14 +00:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(interfaces.I1)
|
|
|
|
v.J()
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2016-02-18 11:27:33 +00:00
|
|
|
_seq.Register(proxyI1_Descriptor, proxyI1_J_Code, proxyI1_J)
|
2015-08-26 16:28:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
|
|
|
proxyI2_Descriptor = "go.interfaces.I2"
|
|
|
|
proxyI2_G_Code = 0x10a
|
|
|
|
)
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
func proxyI2_G(out, in *_seq.Buffer) {
|
2015-08-26 16:28:14 +00:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(interfaces.I2)
|
|
|
|
v.G()
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2016-02-18 11:27:33 +00:00
|
|
|
_seq.Register(proxyI2_Descriptor, proxyI2_G_Code, proxyI2_G)
|
2015-08-26 16:28:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
|
|
|
proxyI3_Descriptor = "go.interfaces.I3"
|
|
|
|
proxyI3_F_Code = 0x10a
|
|
|
|
)
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
func proxyI3_F(out, in *_seq.Buffer) {
|
2015-08-26 16:28:14 +00:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(interfaces.I3)
|
|
|
|
res := v.F()
|
|
|
|
out.WriteGoRef(res)
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2016-02-18 11:27:33 +00:00
|
|
|
_seq.Register(proxyI3_Descriptor, proxyI3_F_Code, proxyI3_F)
|
2015-08-26 16:28:14 +00:00
|
|
|
}
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
type proxyI3 _seq.Ref
|
2015-08-26 16:28:14 +00:00
|
|
|
|
|
|
|
func (p *proxyI3) F() interfaces.I1 {
|
2016-02-18 11:27:33 +00:00
|
|
|
in := new(_seq.Buffer)
|
|
|
|
out := _seq.Transact((*_seq.Ref)(p), "go.interfaces.I3", proxyI3_F_Code, in)
|
2015-08-26 16:28:14 +00:00
|
|
|
var res_0 interfaces.I1
|
|
|
|
res_0_ref := out.ReadRef()
|
|
|
|
if res_0_ref.Num < 0 { // go object
|
|
|
|
res_0 = res_0_ref.Get().(interfaces.I1)
|
|
|
|
}
|
|
|
|
return res_0
|
|
|
|
}
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
func proxy_Seven(out, in *_seq.Buffer) {
|
2014-07-31 19:09:13 +00:00
|
|
|
res := interfaces.Seven()
|
|
|
|
out.WriteGoRef(res)
|
|
|
|
}
|
|
|
|
|
2015-06-04 17:20:31 +00:00
|
|
|
const (
|
|
|
|
proxyWithParam_Descriptor = "go.interfaces.WithParam"
|
|
|
|
proxyWithParam_HasParam_Code = 0x10a
|
|
|
|
)
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
func proxyWithParam_HasParam(out, in *_seq.Buffer) {
|
2015-06-04 17:20:31 +00:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(interfaces.WithParam)
|
|
|
|
param_p0 := in.ReadBool()
|
|
|
|
v.HasParam(param_p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2016-02-18 11:27:33 +00:00
|
|
|
_seq.Register(proxyWithParam_Descriptor, proxyWithParam_HasParam_Code, proxyWithParam_HasParam)
|
2015-06-04 17:20:31 +00:00
|
|
|
}
|
|
|
|
|
2016-02-18 11:27:33 +00:00
|
|
|
type proxyWithParam _seq.Ref
|
2015-06-04 17:20:31 +00:00
|
|
|
|
|
|
|
func (p *proxyWithParam) HasParam(p0 bool) {
|
2016-02-18 11:27:33 +00:00
|
|
|
in := new(_seq.Buffer)
|
2015-06-04 17:20:31 +00:00
|
|
|
in.WriteBool(p0)
|
2016-02-18 11:27:33 +00:00
|
|
|
_seq.Transact((*_seq.Ref)(p), "go.interfaces.WithParam", proxyWithParam_HasParam_Code, in)
|
2015-06-04 17:20:31 +00:00
|
|
|
}
|
|
|
|
|
2014-07-31 19:09:13 +00:00
|
|
|
func init() {
|
2016-02-18 11:27:33 +00:00
|
|
|
_seq.Register("interfaces", 1, proxy_Add3)
|
|
|
|
_seq.Register("interfaces", 2, proxy_CallErr)
|
|
|
|
_seq.Register("interfaces", 3, proxy_Seven)
|
2014-07-31 19:09:13 +00:00
|
|
|
}
|