File: interfaces.go.golden

package info (click to toggle)
golang-golang-x-mobile 0.0~git20251126.5c265dc-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,836 kB
  • sloc: objc: 1,536; java: 1,489; ansic: 1,159; xml: 365; asm: 34; sh: 14; makefile: 5
file content (257 lines) | stat: -rw-r--r-- 6,464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
// Code generated by gobind. DO NOT EDIT.

// Package main is an autogenerated binder stub for package interfaces.
//
//   autogenerated by gobind -lang=go interfaces
package main

/*
#include <stdlib.h>
#include <stdint.h>
#include "seq.h"
#include "interfaces.h"

*/
import "C"

import (
	_seq "golang.org/x/mobile/bind/seq"
	"interfaces"
)

// suppress the error if seq ends up unused
var _ = _seq.FromRefNum

//export proxyinterfaces_Error_Err
func proxyinterfaces_Error_Err(refnum C.int32_t) C.int32_t {
	ref := _seq.FromRefNum(int32(refnum))
	v := ref.Get().(interfaces.Error)
	res_0 := v.Err()
	var _res_0 C.int32_t = _seq.NullRefNum
	if res_0 != nil {
		_res_0 = C.int32_t(_seq.ToRefNum(res_0))
	}
	return _res_0
}

type proxyinterfaces_Error _seq.Ref

func (p *proxyinterfaces_Error) Bind_proxy_refnum__() int32 {
	return (*_seq.Ref)(p).Bind_IncNum()
}

func (p *proxyinterfaces_Error) Err() error {
	res := C.cproxyinterfaces_Error_Err(C.int32_t(p.Bind_proxy_refnum__()))
	var _res error
	_res_ref := _seq.FromRefNum(int32(res))
	if _res_ref != nil {
		if res < 0 { // go object
			_res = _res_ref.Get().(error)
		} else { // foreign object
			_res = (*proxy_error)(_res_ref)
		}
	}
	return _res
}

//export proxyinterfaces_I_Rand
func proxyinterfaces_I_Rand(refnum C.int32_t) C.int32_t {
	ref := _seq.FromRefNum(int32(refnum))
	v := ref.Get().(interfaces.I)
	res_0 := v.Rand()
	_res_0 := C.int32_t(res_0)
	return _res_0
}

type proxyinterfaces_I _seq.Ref

func (p *proxyinterfaces_I) Bind_proxy_refnum__() int32 {
	return (*_seq.Ref)(p).Bind_IncNum()
}

func (p *proxyinterfaces_I) Rand() int32 {
	res := C.cproxyinterfaces_I_Rand(C.int32_t(p.Bind_proxy_refnum__()))
	_res := int32(res)
	return _res
}

//export proxyinterfaces_I1_J
func proxyinterfaces_I1_J(refnum C.int32_t) {
	ref := _seq.FromRefNum(int32(refnum))
	v := ref.Get().(interfaces.I1)
	v.J()
}

//export proxyinterfaces_I2_G
func proxyinterfaces_I2_G(refnum C.int32_t) {
	ref := _seq.FromRefNum(int32(refnum))
	v := ref.Get().(interfaces.I2)
	v.G()
}

//export proxyinterfaces_I3_F
func proxyinterfaces_I3_F(refnum C.int32_t) C.int32_t {
	ref := _seq.FromRefNum(int32(refnum))
	v := ref.Get().(interfaces.I3)
	res_0 := v.F()
	var _res_0 C.int32_t = _seq.NullRefNum
	if res_0 != nil {
		_res_0 = C.int32_t(_seq.ToRefNum(res_0))
	}
	return _res_0
}

type proxyinterfaces_I3 _seq.Ref

func (p *proxyinterfaces_I3) Bind_proxy_refnum__() int32 {
	return (*_seq.Ref)(p).Bind_IncNum()
}

func (p *proxyinterfaces_I3) F() interfaces.I1 {
	res := C.cproxyinterfaces_I3_F(C.int32_t(p.Bind_proxy_refnum__()))
	var _res interfaces.I1
	_res_ref := _seq.FromRefNum(int32(res))
	if _res_ref != nil {
		if res < 0 { // go object
			_res = _res_ref.Get().(interfaces.I1)
		}
	}
	return _res
}

//export proxyinterfaces_Interfaces_SomeMethod
func proxyinterfaces_Interfaces_SomeMethod(refnum C.int32_t) {
	ref := _seq.FromRefNum(int32(refnum))
	v := ref.Get().(interfaces.Interfaces)
	v.SomeMethod()
}

type proxyinterfaces_Interfaces _seq.Ref

func (p *proxyinterfaces_Interfaces) Bind_proxy_refnum__() int32 {
	return (*_seq.Ref)(p).Bind_IncNum()
}

func (p *proxyinterfaces_Interfaces) SomeMethod() {
	C.cproxyinterfaces_Interfaces_SomeMethod(C.int32_t(p.Bind_proxy_refnum__()))
}

//export proxyinterfaces_LargerI_AnotherFunc
func proxyinterfaces_LargerI_AnotherFunc(refnum C.int32_t) {
	ref := _seq.FromRefNum(int32(refnum))
	v := ref.Get().(interfaces.LargerI)
	v.AnotherFunc()
}

//export proxyinterfaces_LargerI_Rand
func proxyinterfaces_LargerI_Rand(refnum C.int32_t) C.int32_t {
	ref := _seq.FromRefNum(int32(refnum))
	v := ref.Get().(interfaces.LargerI)
	res_0 := v.Rand()
	_res_0 := C.int32_t(res_0)
	return _res_0
}

type proxyinterfaces_LargerI _seq.Ref

func (p *proxyinterfaces_LargerI) Bind_proxy_refnum__() int32 {
	return (*_seq.Ref)(p).Bind_IncNum()
}

func (p *proxyinterfaces_LargerI) AnotherFunc() {
	C.cproxyinterfaces_LargerI_AnotherFunc(C.int32_t(p.Bind_proxy_refnum__()))
}

func (p *proxyinterfaces_LargerI) Rand() int32 {
	res := C.cproxyinterfaces_LargerI_Rand(C.int32_t(p.Bind_proxy_refnum__()))
	_res := int32(res)
	return _res
}

//export proxyinterfaces_SameI_Rand
func proxyinterfaces_SameI_Rand(refnum C.int32_t) C.int32_t {
	ref := _seq.FromRefNum(int32(refnum))
	v := ref.Get().(interfaces.SameI)
	res_0 := v.Rand()
	_res_0 := C.int32_t(res_0)
	return _res_0
}

type proxyinterfaces_SameI _seq.Ref

func (p *proxyinterfaces_SameI) Bind_proxy_refnum__() int32 {
	return (*_seq.Ref)(p).Bind_IncNum()
}

func (p *proxyinterfaces_SameI) Rand() int32 {
	res := C.cproxyinterfaces_SameI_Rand(C.int32_t(p.Bind_proxy_refnum__()))
	_res := int32(res)
	return _res
}

//export proxyinterfaces_WithParam_HasParam
func proxyinterfaces_WithParam_HasParam(refnum C.int32_t, param_p0 C.char) {
	ref := _seq.FromRefNum(int32(refnum))
	v := ref.Get().(interfaces.WithParam)
	_param_p0 := param_p0 != 0
	v.HasParam(_param_p0)
}

type proxyinterfaces_WithParam _seq.Ref

func (p *proxyinterfaces_WithParam) Bind_proxy_refnum__() int32 {
	return (*_seq.Ref)(p).Bind_IncNum()
}

func (p *proxyinterfaces_WithParam) HasParam(param_p0 bool) {
	var _param_p0 C.char = 0
	if param_p0 {
		_param_p0 = 1
	}
	C.cproxyinterfaces_WithParam_HasParam(C.int32_t(p.Bind_proxy_refnum__()), _param_p0)
}

//export proxyinterfaces__Add3
func proxyinterfaces__Add3(param_r C.int32_t) C.int32_t {
	var _param_r interfaces.I
	_param_r_ref := _seq.FromRefNum(int32(param_r))
	if _param_r_ref != nil {
		if param_r < 0 { // go object
			_param_r = _param_r_ref.Get().(interfaces.I)
		} else { // foreign object
			_param_r = (*proxyinterfaces_I)(_param_r_ref)
		}
	}
	res_0 := interfaces.Add3(_param_r)
	_res_0 := C.int32_t(res_0)
	return _res_0
}

//export proxyinterfaces__CallErr
func proxyinterfaces__CallErr(param_e C.int32_t) C.int32_t {
	var _param_e interfaces.Error
	_param_e_ref := _seq.FromRefNum(int32(param_e))
	if _param_e_ref != nil {
		if param_e < 0 { // go object
			_param_e = _param_e_ref.Get().(interfaces.Error)
		} else { // foreign object
			_param_e = (*proxyinterfaces_Error)(_param_e_ref)
		}
	}
	res_0 := interfaces.CallErr(_param_e)
	var _res_0 C.int32_t = _seq.NullRefNum
	if res_0 != nil {
		_res_0 = C.int32_t(_seq.ToRefNum(res_0))
	}
	return _res_0
}

//export proxyinterfaces__Seven
func proxyinterfaces__Seven() C.int32_t {
	res_0 := interfaces.Seven()
	var _res_0 C.int32_t = _seq.NullRefNum
	if res_0 != nil {
		_res_0 = C.int32_t(_seq.ToRefNum(res_0))
	}
	return _res_0
}