| OLD | NEW |
| (Empty) |
| 1 // Package go_interfaces is an autogenerated binder stub for package interfaces. | |
| 2 // gobind -lang=go interfaces | |
| 3 // | |
| 4 // File is generated by gobind. Do not edit. | |
| 5 package go_interfaces | |
| 6 | |
| 7 import ( | |
| 8 "golang.org/x/mobile/bind/seq" | |
| 9 "interfaces" | |
| 10 ) | |
| 11 | |
| 12 func proxy_Add3(out, in *seq.Buffer) { | |
| 13 var param_r interfaces.I | |
| 14 param_r_ref := in.ReadRef() | |
| 15 if param_r_ref.Num < 0 { // go object | |
| 16 param_r = param_r_ref.Get().(interfaces.I) | |
| 17 } else { // foreign object | |
| 18 param_r = (*proxyI)(param_r_ref) | |
| 19 } | |
| 20 res := interfaces.Add3(param_r) | |
| 21 out.WriteInt32(res) | |
| 22 } | |
| 23 | |
| 24 const ( | |
| 25 proxyIDescriptor = "go.interfaces.I" | |
| 26 proxyIRandCode = 0x10a | |
| 27 ) | |
| 28 | |
| 29 func proxyIRand(out, in *seq.Buffer) { | |
| 30 ref := in.ReadRef() | |
| 31 v := ref.Get().(interfaces.I) | |
| 32 res := v.Rand() | |
| 33 out.WriteInt32(res) | |
| 34 } | |
| 35 | |
| 36 func init() { | |
| 37 seq.Register(proxyIDescriptor, proxyIRandCode, proxyIRand) | |
| 38 } | |
| 39 | |
| 40 type proxyI seq.Ref | |
| 41 | |
| 42 func (p *proxyI) Rand() int32 { | |
| 43 in := new(seq.Buffer) | |
| 44 out := seq.Transact((*seq.Ref)(p), proxyIRandCode, in) | |
| 45 res_0 := out.ReadInt32() | |
| 46 return res_0 | |
| 47 } | |
| 48 | |
| 49 func proxy_Seven(out, in *seq.Buffer) { | |
| 50 res := interfaces.Seven() | |
| 51 out.WriteGoRef(res) | |
| 52 } | |
| 53 | |
| 54 func init() { | |
| 55 seq.Register("interfaces", 1, proxy_Add3) | |
| 56 seq.Register("interfaces", 2, proxy_Seven) | |
| 57 } | |
| OLD | NEW |