slidge-whatsapp 0.2.2__cp312-cp312-manylinux_2_36_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slidge-whatsapp might be problematic. Click here for more details.
- slidge_whatsapp/__init__.py +17 -0
- slidge_whatsapp/__main__.py +3 -0
- slidge_whatsapp/command.py +143 -0
- slidge_whatsapp/config.py +32 -0
- slidge_whatsapp/contact.py +77 -0
- slidge_whatsapp/event.go +1175 -0
- slidge_whatsapp/gateway.go +181 -0
- slidge_whatsapp/gateway.py +82 -0
- slidge_whatsapp/generated/__init__.py +0 -0
- slidge_whatsapp/generated/_whatsapp.cpython-312-x86_64-linux-gnu.h +606 -0
- slidge_whatsapp/generated/_whatsapp.cpython-312-x86_64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +395 -0
- slidge_whatsapp/generated/go.py +1632 -0
- slidge_whatsapp/generated/whatsapp.c +6887 -0
- slidge_whatsapp/generated/whatsapp.go +3572 -0
- slidge_whatsapp/generated/whatsapp.py +2911 -0
- slidge_whatsapp/generated/whatsapp_go.h +606 -0
- slidge_whatsapp/go.mod +29 -0
- slidge_whatsapp/go.sum +62 -0
- slidge_whatsapp/group.py +256 -0
- slidge_whatsapp/media/ffmpeg.go +72 -0
- slidge_whatsapp/media/media.go +542 -0
- slidge_whatsapp/media/mupdf.go +47 -0
- slidge_whatsapp/media/stub.go +19 -0
- slidge_whatsapp/session.go +855 -0
- slidge_whatsapp/session.py +745 -0
- slidge_whatsapp-0.2.2.dist-info/LICENSE +661 -0
- slidge_whatsapp-0.2.2.dist-info/METADATA +744 -0
- slidge_whatsapp-0.2.2.dist-info/RECORD +31 -0
- slidge_whatsapp-0.2.2.dist-info/WHEEL +4 -0
- slidge_whatsapp-0.2.2.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,3572 @@
|
|
|
1
|
+
/*
|
|
2
|
+
cgo stubs for package whatsapp.
|
|
3
|
+
File is generated by gopy. Do not edit.
|
|
4
|
+
gopy build -output=generated -no-make=true .
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
package main
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
|
|
11
|
+
#cgo CFLAGS: "-I/usr/local/include/python3.12" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
|
12
|
+
#cgo LDFLAGS: "-L/usr/local/lib" "-lpython3.12" -ldl -lm
|
|
13
|
+
|
|
14
|
+
// #define Py_LIMITED_API // need full API for PyRun*
|
|
15
|
+
#include <Python.h>
|
|
16
|
+
typedef uint8_t bool;
|
|
17
|
+
// static inline is trick for avoiding need for extra .c file
|
|
18
|
+
// the following are used for build value -- switch on reflect.Kind
|
|
19
|
+
// or the types equivalent
|
|
20
|
+
static inline PyObject* gopy_build_bool(uint8_t val) {
|
|
21
|
+
return Py_BuildValue("b", val);
|
|
22
|
+
}
|
|
23
|
+
static inline PyObject* gopy_build_int64(int64_t val) {
|
|
24
|
+
return Py_BuildValue("k", val);
|
|
25
|
+
}
|
|
26
|
+
static inline PyObject* gopy_build_uint64(uint64_t val) {
|
|
27
|
+
return Py_BuildValue("K", val);
|
|
28
|
+
}
|
|
29
|
+
static inline PyObject* gopy_build_float64(double val) {
|
|
30
|
+
return Py_BuildValue("d", val);
|
|
31
|
+
}
|
|
32
|
+
static inline PyObject* gopy_build_string(const char* val) {
|
|
33
|
+
return Py_BuildValue("s", val);
|
|
34
|
+
}
|
|
35
|
+
static inline void gopy_decref(PyObject* obj) { // macro
|
|
36
|
+
Py_XDECREF(obj);
|
|
37
|
+
}
|
|
38
|
+
static inline void gopy_incref(PyObject* obj) { // macro
|
|
39
|
+
Py_XINCREF(obj);
|
|
40
|
+
}
|
|
41
|
+
static inline int gopy_method_check(PyObject* obj) { // macro
|
|
42
|
+
return PyMethod_Check(obj);
|
|
43
|
+
}
|
|
44
|
+
static inline void gopy_err_handle() {
|
|
45
|
+
if(PyErr_Occurred() != NULL) {
|
|
46
|
+
PyErr_Print();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
*/
|
|
51
|
+
import "C"
|
|
52
|
+
import (
|
|
53
|
+
"errors"
|
|
54
|
+
"reflect"
|
|
55
|
+
"unsafe"
|
|
56
|
+
|
|
57
|
+
"github.com/go-python/gopy/gopyh" // handler
|
|
58
|
+
|
|
59
|
+
"context"
|
|
60
|
+
"database/sql/driver"
|
|
61
|
+
|
|
62
|
+
whatsapp "codeberg.org/slidge/slidge-whatsapp/slidge_whatsapp"
|
|
63
|
+
"codeberg.org/slidge/slidge-whatsapp/slidge_whatsapp/media"
|
|
64
|
+
"go.mau.fi/libsignal/protocol"
|
|
65
|
+
"go.mau.fi/whatsmeow/types"
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
// main doesn't do anything in lib / pkg mode, but is essential for exe mode
|
|
69
|
+
func main() {
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// initialization functions -- can be called from python after library is loaded
|
|
74
|
+
// GoPyInitRunFile runs a separate python file -- call in GoPyInit if it
|
|
75
|
+
// steals the main thread e.g., for GUI event loop, as in GoGi startup.
|
|
76
|
+
|
|
77
|
+
//export GoPyInit
|
|
78
|
+
func GoPyInit() {
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// type for the handle -- int64 for speed (can switch to string)
|
|
83
|
+
type GoHandle int64
|
|
84
|
+
type CGoHandle C.longlong
|
|
85
|
+
|
|
86
|
+
// DecRef decrements the reference count for the specified handle
|
|
87
|
+
// and deletes it it goes to zero.
|
|
88
|
+
//
|
|
89
|
+
//export DecRef
|
|
90
|
+
func DecRef(handle CGoHandle) {
|
|
91
|
+
gopyh.DecRef(gopyh.CGoHandle(handle))
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// IncRef increments the reference count for the specified handle.
|
|
95
|
+
//
|
|
96
|
+
//export IncRef
|
|
97
|
+
func IncRef(handle CGoHandle) {
|
|
98
|
+
gopyh.IncRef(gopyh.CGoHandle(handle))
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// NumHandles returns the number of handles currently in use.
|
|
102
|
+
//
|
|
103
|
+
//export NumHandles
|
|
104
|
+
func NumHandles() int {
|
|
105
|
+
return gopyh.NumHandles()
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// boolGoToPy converts a Go bool to python-compatible C.char
|
|
109
|
+
func boolGoToPy(b bool) C.char {
|
|
110
|
+
if b {
|
|
111
|
+
return 1
|
|
112
|
+
}
|
|
113
|
+
return 0
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// boolPyToGo converts a python-compatible C.Char to Go bool
|
|
117
|
+
func boolPyToGo(b C.char) bool {
|
|
118
|
+
if b != 0 {
|
|
119
|
+
return true
|
|
120
|
+
}
|
|
121
|
+
return false
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
func complex64GoToPy(c complex64) *C.PyObject {
|
|
125
|
+
return C.PyComplex_FromDoubles(C.double(real(c)), C.double(imag(c)))
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
func complex64PyToGo(o *C.PyObject) complex64 {
|
|
129
|
+
v := C.PyComplex_AsCComplex(o)
|
|
130
|
+
return complex(float32(v.real), float32(v.imag))
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
func complex128GoToPy(c complex128) *C.PyObject {
|
|
134
|
+
return C.PyComplex_FromDoubles(C.double(real(c)), C.double(imag(c)))
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
func complex128PyToGo(o *C.PyObject) complex128 {
|
|
138
|
+
v := C.PyComplex_AsCComplex(o)
|
|
139
|
+
return complex(float64(v.real), float64(v.imag))
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// errorGoToPy converts a Go error to python-compatible C.CString
|
|
143
|
+
func errorGoToPy(e error) *C.char {
|
|
144
|
+
if e != nil {
|
|
145
|
+
return C.CString(e.Error())
|
|
146
|
+
}
|
|
147
|
+
return C.CString("")
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// --- generated code for package: whatsapp below: ---
|
|
151
|
+
|
|
152
|
+
// ---- External Types Outside of Targeted Packages ---
|
|
153
|
+
|
|
154
|
+
// Converters for pointer handles for type: *media.Spec
|
|
155
|
+
func ptrFromHandle_Ptr_media_Spec(h CGoHandle) *media.Spec {
|
|
156
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*media.Spec")
|
|
157
|
+
if p == nil {
|
|
158
|
+
return nil
|
|
159
|
+
}
|
|
160
|
+
return gopyh.Embed(p, reflect.TypeOf(media.Spec{})).(*media.Spec)
|
|
161
|
+
}
|
|
162
|
+
func handleFromPtr_Ptr_media_Spec(p interface{}) CGoHandle {
|
|
163
|
+
return CGoHandle(gopyh.Register("*media.Spec", p))
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// Converters for pointer handles for type: *protocol.SignalAddress
|
|
167
|
+
func ptrFromHandle_Ptr_protocol_SignalAddress(h CGoHandle) *protocol.SignalAddress {
|
|
168
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*protocol.SignalAddress")
|
|
169
|
+
if p == nil {
|
|
170
|
+
return nil
|
|
171
|
+
}
|
|
172
|
+
return gopyh.Embed(p, reflect.TypeOf(protocol.SignalAddress{})).(*protocol.SignalAddress)
|
|
173
|
+
}
|
|
174
|
+
func handleFromPtr_Ptr_protocol_SignalAddress(p interface{}) CGoHandle {
|
|
175
|
+
return CGoHandle(gopyh.Register("*protocol.SignalAddress", p))
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Converters for non-pointer handles for type: media.Spec
|
|
179
|
+
func ptrFromHandle_media_Spec(h CGoHandle) *media.Spec {
|
|
180
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "media.Spec")
|
|
181
|
+
if p == nil {
|
|
182
|
+
return nil
|
|
183
|
+
}
|
|
184
|
+
return gopyh.Embed(p, reflect.TypeOf(media.Spec{})).(*media.Spec)
|
|
185
|
+
}
|
|
186
|
+
func handleFromPtr_media_Spec(p interface{}) CGoHandle {
|
|
187
|
+
return CGoHandle(gopyh.Register("media.Spec", p))
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Converters for pointer handles for type: context.Context
|
|
191
|
+
func ptrFromHandle_context_Context(h CGoHandle) context.Context {
|
|
192
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "context.Context")
|
|
193
|
+
if p == nil {
|
|
194
|
+
return nil
|
|
195
|
+
}
|
|
196
|
+
return p.(context.Context)
|
|
197
|
+
}
|
|
198
|
+
func handleFromPtr_context_Context(p interface{}) CGoHandle {
|
|
199
|
+
return CGoHandle(gopyh.Register("context.Context", p))
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Converters for pointer handles for type: driver.Value
|
|
203
|
+
func ptrFromHandle_driver_Value(h CGoHandle) driver.Value {
|
|
204
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "driver.Value")
|
|
205
|
+
if p == nil {
|
|
206
|
+
return nil
|
|
207
|
+
}
|
|
208
|
+
return p.(driver.Value)
|
|
209
|
+
}
|
|
210
|
+
func handleFromPtr_driver_Value(p interface{}) CGoHandle {
|
|
211
|
+
return CGoHandle(gopyh.Register("driver.Value", p))
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Converters for non-pointer handles for type: protocol.SignalAddress
|
|
215
|
+
func ptrFromHandle_protocol_SignalAddress(h CGoHandle) *protocol.SignalAddress {
|
|
216
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "protocol.SignalAddress")
|
|
217
|
+
if p == nil {
|
|
218
|
+
return nil
|
|
219
|
+
}
|
|
220
|
+
return gopyh.Embed(p, reflect.TypeOf(protocol.SignalAddress{})).(*protocol.SignalAddress)
|
|
221
|
+
}
|
|
222
|
+
func handleFromPtr_protocol_SignalAddress(p interface{}) CGoHandle {
|
|
223
|
+
return CGoHandle(gopyh.Register("protocol.SignalAddress", p))
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// Converters for non-pointer handles for type: types.JID
|
|
227
|
+
func ptrFromHandle_types_JID(h CGoHandle) *types.JID {
|
|
228
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "types.JID")
|
|
229
|
+
if p == nil {
|
|
230
|
+
return nil
|
|
231
|
+
}
|
|
232
|
+
return gopyh.Embed(p, reflect.TypeOf(types.JID{})).(*types.JID)
|
|
233
|
+
}
|
|
234
|
+
func handleFromPtr_types_JID(p interface{}) CGoHandle {
|
|
235
|
+
return CGoHandle(gopyh.Register("types.JID", p))
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// ---- Package: go ---
|
|
239
|
+
|
|
240
|
+
// ---- Types ---
|
|
241
|
+
|
|
242
|
+
// Converters for implicit pointer handles for type: []bool
|
|
243
|
+
func ptrFromHandle_Slice_bool(h CGoHandle) *[]bool {
|
|
244
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]bool")
|
|
245
|
+
if p == nil {
|
|
246
|
+
return nil
|
|
247
|
+
}
|
|
248
|
+
return p.(*[]bool)
|
|
249
|
+
}
|
|
250
|
+
func deptrFromHandle_Slice_bool(h CGoHandle) []bool {
|
|
251
|
+
p := ptrFromHandle_Slice_bool(h)
|
|
252
|
+
if p == nil {
|
|
253
|
+
return nil
|
|
254
|
+
}
|
|
255
|
+
return *p
|
|
256
|
+
}
|
|
257
|
+
func handleFromPtr_Slice_bool(p interface{}) CGoHandle {
|
|
258
|
+
return CGoHandle(gopyh.Register("[]bool", p))
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// --- wrapping slice: []bool ---
|
|
262
|
+
//
|
|
263
|
+
//export Slice_bool_CTor
|
|
264
|
+
func Slice_bool_CTor() CGoHandle {
|
|
265
|
+
return CGoHandle(handleFromPtr_Slice_bool(&[]bool{}))
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
//export Slice_bool_len
|
|
269
|
+
func Slice_bool_len(handle CGoHandle) int {
|
|
270
|
+
return len(deptrFromHandle_Slice_bool(handle))
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
//export Slice_bool_elem
|
|
274
|
+
func Slice_bool_elem(handle CGoHandle, _idx int) C.char {
|
|
275
|
+
s := deptrFromHandle_Slice_bool(handle)
|
|
276
|
+
return boolGoToPy(s[_idx])
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
//export Slice_bool_subslice
|
|
280
|
+
func Slice_bool_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
281
|
+
s := deptrFromHandle_Slice_bool(handle)
|
|
282
|
+
ss := s[_st:_ed]
|
|
283
|
+
return CGoHandle(handleFromPtr_Slice_bool(&ss))
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
//export Slice_bool_set
|
|
287
|
+
func Slice_bool_set(handle CGoHandle, _idx int, _vl C.char) {
|
|
288
|
+
s := deptrFromHandle_Slice_bool(handle)
|
|
289
|
+
s[_idx] = boolPyToGo(_vl)
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
//export Slice_bool_append
|
|
293
|
+
func Slice_bool_append(handle CGoHandle, _vl C.char) {
|
|
294
|
+
s := ptrFromHandle_Slice_bool(handle)
|
|
295
|
+
*s = append(*s, boolPyToGo(_vl))
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// Converters for implicit pointer handles for type: []byte
|
|
299
|
+
func ptrFromHandle_Slice_byte(h CGoHandle) *[]byte {
|
|
300
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]byte")
|
|
301
|
+
if p == nil {
|
|
302
|
+
return nil
|
|
303
|
+
}
|
|
304
|
+
return p.(*[]byte)
|
|
305
|
+
}
|
|
306
|
+
func deptrFromHandle_Slice_byte(h CGoHandle) []byte {
|
|
307
|
+
p := ptrFromHandle_Slice_byte(h)
|
|
308
|
+
if p == nil {
|
|
309
|
+
return nil
|
|
310
|
+
}
|
|
311
|
+
return *p
|
|
312
|
+
}
|
|
313
|
+
func handleFromPtr_Slice_byte(p interface{}) CGoHandle {
|
|
314
|
+
return CGoHandle(gopyh.Register("[]byte", p))
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// --- wrapping slice: []byte ---
|
|
318
|
+
//
|
|
319
|
+
//export Slice_byte_CTor
|
|
320
|
+
func Slice_byte_CTor() CGoHandle {
|
|
321
|
+
return CGoHandle(handleFromPtr_Slice_byte(&[]byte{}))
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
//export Slice_byte_len
|
|
325
|
+
func Slice_byte_len(handle CGoHandle) int {
|
|
326
|
+
return len(deptrFromHandle_Slice_byte(handle))
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
//export Slice_byte_elem
|
|
330
|
+
func Slice_byte_elem(handle CGoHandle, _idx int) C.char {
|
|
331
|
+
s := deptrFromHandle_Slice_byte(handle)
|
|
332
|
+
return C.char(s[_idx])
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
//export Slice_byte_subslice
|
|
336
|
+
func Slice_byte_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
337
|
+
s := deptrFromHandle_Slice_byte(handle)
|
|
338
|
+
ss := s[_st:_ed]
|
|
339
|
+
return CGoHandle(handleFromPtr_Slice_byte(&ss))
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
//export Slice_byte_set
|
|
343
|
+
func Slice_byte_set(handle CGoHandle, _idx int, _vl C.char) {
|
|
344
|
+
s := deptrFromHandle_Slice_byte(handle)
|
|
345
|
+
s[_idx] = byte(_vl)
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
//export Slice_byte_append
|
|
349
|
+
func Slice_byte_append(handle CGoHandle, _vl C.char) {
|
|
350
|
+
s := ptrFromHandle_Slice_byte(handle)
|
|
351
|
+
*s = append(*s, byte(_vl))
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
//export Slice_byte_from_bytes
|
|
355
|
+
func Slice_byte_from_bytes(o *C.PyObject) CGoHandle {
|
|
356
|
+
size := C.PyBytes_Size(o)
|
|
357
|
+
ptr := unsafe.Pointer(C.PyBytes_AsString(o))
|
|
358
|
+
data := make([]byte, size)
|
|
359
|
+
tmp := unsafe.Slice((*byte)(ptr), size)
|
|
360
|
+
copy(data, tmp)
|
|
361
|
+
return handleFromPtr_Slice_byte(&data)
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
//export Slice_byte_to_bytes
|
|
365
|
+
func Slice_byte_to_bytes(handle CGoHandle) *C.PyObject {
|
|
366
|
+
s := deptrFromHandle_Slice_byte(handle)
|
|
367
|
+
ptr := unsafe.Pointer(&s[0])
|
|
368
|
+
size := len(s)
|
|
369
|
+
return C.PyBytes_FromStringAndSize((*C.char)(ptr), C.long(size))
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// Converters for implicit pointer handles for type: []error
|
|
373
|
+
func ptrFromHandle_Slice_error(h CGoHandle) *[]error {
|
|
374
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]error")
|
|
375
|
+
if p == nil {
|
|
376
|
+
return nil
|
|
377
|
+
}
|
|
378
|
+
return p.(*[]error)
|
|
379
|
+
}
|
|
380
|
+
func deptrFromHandle_Slice_error(h CGoHandle) []error {
|
|
381
|
+
p := ptrFromHandle_Slice_error(h)
|
|
382
|
+
if p == nil {
|
|
383
|
+
return nil
|
|
384
|
+
}
|
|
385
|
+
return *p
|
|
386
|
+
}
|
|
387
|
+
func handleFromPtr_Slice_error(p interface{}) CGoHandle {
|
|
388
|
+
return CGoHandle(gopyh.Register("[]error", p))
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// --- wrapping slice: []error ---
|
|
392
|
+
//
|
|
393
|
+
//export Slice_error_CTor
|
|
394
|
+
func Slice_error_CTor() CGoHandle {
|
|
395
|
+
return CGoHandle(handleFromPtr_Slice_error(&[]error{}))
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
//export Slice_error_len
|
|
399
|
+
func Slice_error_len(handle CGoHandle) int {
|
|
400
|
+
return len(deptrFromHandle_Slice_error(handle))
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
//export Slice_error_elem
|
|
404
|
+
func Slice_error_elem(handle CGoHandle, _idx int) *C.char {
|
|
405
|
+
s := deptrFromHandle_Slice_error(handle)
|
|
406
|
+
return errorGoToPy(s[_idx])
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
//export Slice_error_subslice
|
|
410
|
+
func Slice_error_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
411
|
+
s := deptrFromHandle_Slice_error(handle)
|
|
412
|
+
ss := s[_st:_ed]
|
|
413
|
+
return CGoHandle(handleFromPtr_Slice_error(&ss))
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
//export Slice_error_set
|
|
417
|
+
func Slice_error_set(handle CGoHandle, _idx int, _vl *C.char) {
|
|
418
|
+
s := deptrFromHandle_Slice_error(handle)
|
|
419
|
+
s[_idx] = errors.New(C.GoString(_vl))
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
//export Slice_error_append
|
|
423
|
+
func Slice_error_append(handle CGoHandle, _vl *C.char) {
|
|
424
|
+
s := ptrFromHandle_Slice_error(handle)
|
|
425
|
+
*s = append(*s, errors.New(C.GoString(_vl)))
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// Converters for implicit pointer handles for type: []float32
|
|
429
|
+
func ptrFromHandle_Slice_float32(h CGoHandle) *[]float32 {
|
|
430
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]float32")
|
|
431
|
+
if p == nil {
|
|
432
|
+
return nil
|
|
433
|
+
}
|
|
434
|
+
return p.(*[]float32)
|
|
435
|
+
}
|
|
436
|
+
func deptrFromHandle_Slice_float32(h CGoHandle) []float32 {
|
|
437
|
+
p := ptrFromHandle_Slice_float32(h)
|
|
438
|
+
if p == nil {
|
|
439
|
+
return nil
|
|
440
|
+
}
|
|
441
|
+
return *p
|
|
442
|
+
}
|
|
443
|
+
func handleFromPtr_Slice_float32(p interface{}) CGoHandle {
|
|
444
|
+
return CGoHandle(gopyh.Register("[]float32", p))
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
// --- wrapping slice: []float32 ---
|
|
448
|
+
//
|
|
449
|
+
//export Slice_float32_CTor
|
|
450
|
+
func Slice_float32_CTor() CGoHandle {
|
|
451
|
+
return CGoHandle(handleFromPtr_Slice_float32(&[]float32{}))
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
//export Slice_float32_len
|
|
455
|
+
func Slice_float32_len(handle CGoHandle) int {
|
|
456
|
+
return len(deptrFromHandle_Slice_float32(handle))
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
//export Slice_float32_elem
|
|
460
|
+
func Slice_float32_elem(handle CGoHandle, _idx int) C.float {
|
|
461
|
+
s := deptrFromHandle_Slice_float32(handle)
|
|
462
|
+
return C.float(s[_idx])
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
//export Slice_float32_subslice
|
|
466
|
+
func Slice_float32_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
467
|
+
s := deptrFromHandle_Slice_float32(handle)
|
|
468
|
+
ss := s[_st:_ed]
|
|
469
|
+
return CGoHandle(handleFromPtr_Slice_float32(&ss))
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
//export Slice_float32_set
|
|
473
|
+
func Slice_float32_set(handle CGoHandle, _idx int, _vl C.float) {
|
|
474
|
+
s := deptrFromHandle_Slice_float32(handle)
|
|
475
|
+
s[_idx] = float32(_vl)
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
//export Slice_float32_append
|
|
479
|
+
func Slice_float32_append(handle CGoHandle, _vl C.float) {
|
|
480
|
+
s := ptrFromHandle_Slice_float32(handle)
|
|
481
|
+
*s = append(*s, float32(_vl))
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
// Converters for implicit pointer handles for type: []float64
|
|
485
|
+
func ptrFromHandle_Slice_float64(h CGoHandle) *[]float64 {
|
|
486
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]float64")
|
|
487
|
+
if p == nil {
|
|
488
|
+
return nil
|
|
489
|
+
}
|
|
490
|
+
return p.(*[]float64)
|
|
491
|
+
}
|
|
492
|
+
func deptrFromHandle_Slice_float64(h CGoHandle) []float64 {
|
|
493
|
+
p := ptrFromHandle_Slice_float64(h)
|
|
494
|
+
if p == nil {
|
|
495
|
+
return nil
|
|
496
|
+
}
|
|
497
|
+
return *p
|
|
498
|
+
}
|
|
499
|
+
func handleFromPtr_Slice_float64(p interface{}) CGoHandle {
|
|
500
|
+
return CGoHandle(gopyh.Register("[]float64", p))
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
// --- wrapping slice: []float64 ---
|
|
504
|
+
//
|
|
505
|
+
//export Slice_float64_CTor
|
|
506
|
+
func Slice_float64_CTor() CGoHandle {
|
|
507
|
+
return CGoHandle(handleFromPtr_Slice_float64(&[]float64{}))
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
//export Slice_float64_len
|
|
511
|
+
func Slice_float64_len(handle CGoHandle) int {
|
|
512
|
+
return len(deptrFromHandle_Slice_float64(handle))
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
//export Slice_float64_elem
|
|
516
|
+
func Slice_float64_elem(handle CGoHandle, _idx int) C.double {
|
|
517
|
+
s := deptrFromHandle_Slice_float64(handle)
|
|
518
|
+
return C.double(s[_idx])
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
//export Slice_float64_subslice
|
|
522
|
+
func Slice_float64_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
523
|
+
s := deptrFromHandle_Slice_float64(handle)
|
|
524
|
+
ss := s[_st:_ed]
|
|
525
|
+
return CGoHandle(handleFromPtr_Slice_float64(&ss))
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
//export Slice_float64_set
|
|
529
|
+
func Slice_float64_set(handle CGoHandle, _idx int, _vl C.double) {
|
|
530
|
+
s := deptrFromHandle_Slice_float64(handle)
|
|
531
|
+
s[_idx] = float64(_vl)
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
//export Slice_float64_append
|
|
535
|
+
func Slice_float64_append(handle CGoHandle, _vl C.double) {
|
|
536
|
+
s := ptrFromHandle_Slice_float64(handle)
|
|
537
|
+
*s = append(*s, float64(_vl))
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
// Converters for implicit pointer handles for type: []int
|
|
541
|
+
func ptrFromHandle_Slice_int(h CGoHandle) *[]int {
|
|
542
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]int")
|
|
543
|
+
if p == nil {
|
|
544
|
+
return nil
|
|
545
|
+
}
|
|
546
|
+
return p.(*[]int)
|
|
547
|
+
}
|
|
548
|
+
func deptrFromHandle_Slice_int(h CGoHandle) []int {
|
|
549
|
+
p := ptrFromHandle_Slice_int(h)
|
|
550
|
+
if p == nil {
|
|
551
|
+
return nil
|
|
552
|
+
}
|
|
553
|
+
return *p
|
|
554
|
+
}
|
|
555
|
+
func handleFromPtr_Slice_int(p interface{}) CGoHandle {
|
|
556
|
+
return CGoHandle(gopyh.Register("[]int", p))
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// --- wrapping slice: []int ---
|
|
560
|
+
//
|
|
561
|
+
//export Slice_int_CTor
|
|
562
|
+
func Slice_int_CTor() CGoHandle {
|
|
563
|
+
return CGoHandle(handleFromPtr_Slice_int(&[]int{}))
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
//export Slice_int_len
|
|
567
|
+
func Slice_int_len(handle CGoHandle) int {
|
|
568
|
+
return len(deptrFromHandle_Slice_int(handle))
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
//export Slice_int_elem
|
|
572
|
+
func Slice_int_elem(handle CGoHandle, _idx int) C.longlong {
|
|
573
|
+
s := deptrFromHandle_Slice_int(handle)
|
|
574
|
+
return C.longlong(s[_idx])
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
//export Slice_int_subslice
|
|
578
|
+
func Slice_int_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
579
|
+
s := deptrFromHandle_Slice_int(handle)
|
|
580
|
+
ss := s[_st:_ed]
|
|
581
|
+
return CGoHandle(handleFromPtr_Slice_int(&ss))
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
//export Slice_int_set
|
|
585
|
+
func Slice_int_set(handle CGoHandle, _idx int, _vl C.longlong) {
|
|
586
|
+
s := deptrFromHandle_Slice_int(handle)
|
|
587
|
+
s[_idx] = int(_vl)
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
//export Slice_int_append
|
|
591
|
+
func Slice_int_append(handle CGoHandle, _vl C.longlong) {
|
|
592
|
+
s := ptrFromHandle_Slice_int(handle)
|
|
593
|
+
*s = append(*s, int(_vl))
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// Converters for implicit pointer handles for type: []int16
|
|
597
|
+
func ptrFromHandle_Slice_int16(h CGoHandle) *[]int16 {
|
|
598
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]int16")
|
|
599
|
+
if p == nil {
|
|
600
|
+
return nil
|
|
601
|
+
}
|
|
602
|
+
return p.(*[]int16)
|
|
603
|
+
}
|
|
604
|
+
func deptrFromHandle_Slice_int16(h CGoHandle) []int16 {
|
|
605
|
+
p := ptrFromHandle_Slice_int16(h)
|
|
606
|
+
if p == nil {
|
|
607
|
+
return nil
|
|
608
|
+
}
|
|
609
|
+
return *p
|
|
610
|
+
}
|
|
611
|
+
func handleFromPtr_Slice_int16(p interface{}) CGoHandle {
|
|
612
|
+
return CGoHandle(gopyh.Register("[]int16", p))
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
// --- wrapping slice: []int16 ---
|
|
616
|
+
//
|
|
617
|
+
//export Slice_int16_CTor
|
|
618
|
+
func Slice_int16_CTor() CGoHandle {
|
|
619
|
+
return CGoHandle(handleFromPtr_Slice_int16(&[]int16{}))
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
//export Slice_int16_len
|
|
623
|
+
func Slice_int16_len(handle CGoHandle) int {
|
|
624
|
+
return len(deptrFromHandle_Slice_int16(handle))
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
//export Slice_int16_elem
|
|
628
|
+
func Slice_int16_elem(handle CGoHandle, _idx int) C.short {
|
|
629
|
+
s := deptrFromHandle_Slice_int16(handle)
|
|
630
|
+
return C.short(s[_idx])
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
//export Slice_int16_subslice
|
|
634
|
+
func Slice_int16_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
635
|
+
s := deptrFromHandle_Slice_int16(handle)
|
|
636
|
+
ss := s[_st:_ed]
|
|
637
|
+
return CGoHandle(handleFromPtr_Slice_int16(&ss))
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
//export Slice_int16_set
|
|
641
|
+
func Slice_int16_set(handle CGoHandle, _idx int, _vl C.short) {
|
|
642
|
+
s := deptrFromHandle_Slice_int16(handle)
|
|
643
|
+
s[_idx] = int16(_vl)
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
//export Slice_int16_append
|
|
647
|
+
func Slice_int16_append(handle CGoHandle, _vl C.short) {
|
|
648
|
+
s := ptrFromHandle_Slice_int16(handle)
|
|
649
|
+
*s = append(*s, int16(_vl))
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// Converters for implicit pointer handles for type: []int32
|
|
653
|
+
func ptrFromHandle_Slice_int32(h CGoHandle) *[]int32 {
|
|
654
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]int32")
|
|
655
|
+
if p == nil {
|
|
656
|
+
return nil
|
|
657
|
+
}
|
|
658
|
+
return p.(*[]int32)
|
|
659
|
+
}
|
|
660
|
+
func deptrFromHandle_Slice_int32(h CGoHandle) []int32 {
|
|
661
|
+
p := ptrFromHandle_Slice_int32(h)
|
|
662
|
+
if p == nil {
|
|
663
|
+
return nil
|
|
664
|
+
}
|
|
665
|
+
return *p
|
|
666
|
+
}
|
|
667
|
+
func handleFromPtr_Slice_int32(p interface{}) CGoHandle {
|
|
668
|
+
return CGoHandle(gopyh.Register("[]int32", p))
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
// --- wrapping slice: []int32 ---
|
|
672
|
+
//
|
|
673
|
+
//export Slice_int32_CTor
|
|
674
|
+
func Slice_int32_CTor() CGoHandle {
|
|
675
|
+
return CGoHandle(handleFromPtr_Slice_int32(&[]int32{}))
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
//export Slice_int32_len
|
|
679
|
+
func Slice_int32_len(handle CGoHandle) int {
|
|
680
|
+
return len(deptrFromHandle_Slice_int32(handle))
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
//export Slice_int32_elem
|
|
684
|
+
func Slice_int32_elem(handle CGoHandle, _idx int) C.long {
|
|
685
|
+
s := deptrFromHandle_Slice_int32(handle)
|
|
686
|
+
return C.long(s[_idx])
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
//export Slice_int32_subslice
|
|
690
|
+
func Slice_int32_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
691
|
+
s := deptrFromHandle_Slice_int32(handle)
|
|
692
|
+
ss := s[_st:_ed]
|
|
693
|
+
return CGoHandle(handleFromPtr_Slice_int32(&ss))
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
//export Slice_int32_set
|
|
697
|
+
func Slice_int32_set(handle CGoHandle, _idx int, _vl C.long) {
|
|
698
|
+
s := deptrFromHandle_Slice_int32(handle)
|
|
699
|
+
s[_idx] = int32(_vl)
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
//export Slice_int32_append
|
|
703
|
+
func Slice_int32_append(handle CGoHandle, _vl C.long) {
|
|
704
|
+
s := ptrFromHandle_Slice_int32(handle)
|
|
705
|
+
*s = append(*s, int32(_vl))
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
// Converters for implicit pointer handles for type: []int64
|
|
709
|
+
func ptrFromHandle_Slice_int64(h CGoHandle) *[]int64 {
|
|
710
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]int64")
|
|
711
|
+
if p == nil {
|
|
712
|
+
return nil
|
|
713
|
+
}
|
|
714
|
+
return p.(*[]int64)
|
|
715
|
+
}
|
|
716
|
+
func deptrFromHandle_Slice_int64(h CGoHandle) []int64 {
|
|
717
|
+
p := ptrFromHandle_Slice_int64(h)
|
|
718
|
+
if p == nil {
|
|
719
|
+
return nil
|
|
720
|
+
}
|
|
721
|
+
return *p
|
|
722
|
+
}
|
|
723
|
+
func handleFromPtr_Slice_int64(p interface{}) CGoHandle {
|
|
724
|
+
return CGoHandle(gopyh.Register("[]int64", p))
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
// --- wrapping slice: []int64 ---
|
|
728
|
+
//
|
|
729
|
+
//export Slice_int64_CTor
|
|
730
|
+
func Slice_int64_CTor() CGoHandle {
|
|
731
|
+
return CGoHandle(handleFromPtr_Slice_int64(&[]int64{}))
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
//export Slice_int64_len
|
|
735
|
+
func Slice_int64_len(handle CGoHandle) int {
|
|
736
|
+
return len(deptrFromHandle_Slice_int64(handle))
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
//export Slice_int64_elem
|
|
740
|
+
func Slice_int64_elem(handle CGoHandle, _idx int) C.longlong {
|
|
741
|
+
s := deptrFromHandle_Slice_int64(handle)
|
|
742
|
+
return C.longlong(s[_idx])
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
//export Slice_int64_subslice
|
|
746
|
+
func Slice_int64_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
747
|
+
s := deptrFromHandle_Slice_int64(handle)
|
|
748
|
+
ss := s[_st:_ed]
|
|
749
|
+
return CGoHandle(handleFromPtr_Slice_int64(&ss))
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
//export Slice_int64_set
|
|
753
|
+
func Slice_int64_set(handle CGoHandle, _idx int, _vl C.longlong) {
|
|
754
|
+
s := deptrFromHandle_Slice_int64(handle)
|
|
755
|
+
s[_idx] = int64(_vl)
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
//export Slice_int64_append
|
|
759
|
+
func Slice_int64_append(handle CGoHandle, _vl C.longlong) {
|
|
760
|
+
s := ptrFromHandle_Slice_int64(handle)
|
|
761
|
+
*s = append(*s, int64(_vl))
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
// Converters for implicit pointer handles for type: []int8
|
|
765
|
+
func ptrFromHandle_Slice_int8(h CGoHandle) *[]int8 {
|
|
766
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]int8")
|
|
767
|
+
if p == nil {
|
|
768
|
+
return nil
|
|
769
|
+
}
|
|
770
|
+
return p.(*[]int8)
|
|
771
|
+
}
|
|
772
|
+
func deptrFromHandle_Slice_int8(h CGoHandle) []int8 {
|
|
773
|
+
p := ptrFromHandle_Slice_int8(h)
|
|
774
|
+
if p == nil {
|
|
775
|
+
return nil
|
|
776
|
+
}
|
|
777
|
+
return *p
|
|
778
|
+
}
|
|
779
|
+
func handleFromPtr_Slice_int8(p interface{}) CGoHandle {
|
|
780
|
+
return CGoHandle(gopyh.Register("[]int8", p))
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
// --- wrapping slice: []int8 ---
|
|
784
|
+
//
|
|
785
|
+
//export Slice_int8_CTor
|
|
786
|
+
func Slice_int8_CTor() CGoHandle {
|
|
787
|
+
return CGoHandle(handleFromPtr_Slice_int8(&[]int8{}))
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
//export Slice_int8_len
|
|
791
|
+
func Slice_int8_len(handle CGoHandle) int {
|
|
792
|
+
return len(deptrFromHandle_Slice_int8(handle))
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
//export Slice_int8_elem
|
|
796
|
+
func Slice_int8_elem(handle CGoHandle, _idx int) C.char {
|
|
797
|
+
s := deptrFromHandle_Slice_int8(handle)
|
|
798
|
+
return C.char(s[_idx])
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
//export Slice_int8_subslice
|
|
802
|
+
func Slice_int8_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
803
|
+
s := deptrFromHandle_Slice_int8(handle)
|
|
804
|
+
ss := s[_st:_ed]
|
|
805
|
+
return CGoHandle(handleFromPtr_Slice_int8(&ss))
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
//export Slice_int8_set
|
|
809
|
+
func Slice_int8_set(handle CGoHandle, _idx int, _vl C.char) {
|
|
810
|
+
s := deptrFromHandle_Slice_int8(handle)
|
|
811
|
+
s[_idx] = int8(_vl)
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
//export Slice_int8_append
|
|
815
|
+
func Slice_int8_append(handle CGoHandle, _vl C.char) {
|
|
816
|
+
s := ptrFromHandle_Slice_int8(handle)
|
|
817
|
+
*s = append(*s, int8(_vl))
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
// Converters for implicit pointer handles for type: []rune
|
|
821
|
+
func ptrFromHandle_Slice_rune(h CGoHandle) *[]rune {
|
|
822
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]rune")
|
|
823
|
+
if p == nil {
|
|
824
|
+
return nil
|
|
825
|
+
}
|
|
826
|
+
return p.(*[]rune)
|
|
827
|
+
}
|
|
828
|
+
func deptrFromHandle_Slice_rune(h CGoHandle) []rune {
|
|
829
|
+
p := ptrFromHandle_Slice_rune(h)
|
|
830
|
+
if p == nil {
|
|
831
|
+
return nil
|
|
832
|
+
}
|
|
833
|
+
return *p
|
|
834
|
+
}
|
|
835
|
+
func handleFromPtr_Slice_rune(p interface{}) CGoHandle {
|
|
836
|
+
return CGoHandle(gopyh.Register("[]rune", p))
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
// --- wrapping slice: []rune ---
|
|
840
|
+
//
|
|
841
|
+
//export Slice_rune_CTor
|
|
842
|
+
func Slice_rune_CTor() CGoHandle {
|
|
843
|
+
return CGoHandle(handleFromPtr_Slice_rune(&[]rune{}))
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
//export Slice_rune_len
|
|
847
|
+
func Slice_rune_len(handle CGoHandle) int {
|
|
848
|
+
return len(deptrFromHandle_Slice_rune(handle))
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
//export Slice_rune_elem
|
|
852
|
+
func Slice_rune_elem(handle CGoHandle, _idx int) C.long {
|
|
853
|
+
s := deptrFromHandle_Slice_rune(handle)
|
|
854
|
+
return C.long(s[_idx])
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
//export Slice_rune_subslice
|
|
858
|
+
func Slice_rune_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
859
|
+
s := deptrFromHandle_Slice_rune(handle)
|
|
860
|
+
ss := s[_st:_ed]
|
|
861
|
+
return CGoHandle(handleFromPtr_Slice_rune(&ss))
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
//export Slice_rune_set
|
|
865
|
+
func Slice_rune_set(handle CGoHandle, _idx int, _vl C.long) {
|
|
866
|
+
s := deptrFromHandle_Slice_rune(handle)
|
|
867
|
+
s[_idx] = rune(_vl)
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
//export Slice_rune_append
|
|
871
|
+
func Slice_rune_append(handle CGoHandle, _vl C.long) {
|
|
872
|
+
s := ptrFromHandle_Slice_rune(handle)
|
|
873
|
+
*s = append(*s, rune(_vl))
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
// Converters for implicit pointer handles for type: []string
|
|
877
|
+
func ptrFromHandle_Slice_string(h CGoHandle) *[]string {
|
|
878
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]string")
|
|
879
|
+
if p == nil {
|
|
880
|
+
return nil
|
|
881
|
+
}
|
|
882
|
+
return p.(*[]string)
|
|
883
|
+
}
|
|
884
|
+
func deptrFromHandle_Slice_string(h CGoHandle) []string {
|
|
885
|
+
p := ptrFromHandle_Slice_string(h)
|
|
886
|
+
if p == nil {
|
|
887
|
+
return nil
|
|
888
|
+
}
|
|
889
|
+
return *p
|
|
890
|
+
}
|
|
891
|
+
func handleFromPtr_Slice_string(p interface{}) CGoHandle {
|
|
892
|
+
return CGoHandle(gopyh.Register("[]string", p))
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
// --- wrapping slice: []string ---
|
|
896
|
+
//
|
|
897
|
+
//export Slice_string_CTor
|
|
898
|
+
func Slice_string_CTor() CGoHandle {
|
|
899
|
+
return CGoHandle(handleFromPtr_Slice_string(&[]string{}))
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
//export Slice_string_len
|
|
903
|
+
func Slice_string_len(handle CGoHandle) int {
|
|
904
|
+
return len(deptrFromHandle_Slice_string(handle))
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
//export Slice_string_elem
|
|
908
|
+
func Slice_string_elem(handle CGoHandle, _idx int) *C.char {
|
|
909
|
+
s := deptrFromHandle_Slice_string(handle)
|
|
910
|
+
return C.CString(s[_idx])
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
//export Slice_string_subslice
|
|
914
|
+
func Slice_string_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
915
|
+
s := deptrFromHandle_Slice_string(handle)
|
|
916
|
+
ss := s[_st:_ed]
|
|
917
|
+
return CGoHandle(handleFromPtr_Slice_string(&ss))
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
//export Slice_string_set
|
|
921
|
+
func Slice_string_set(handle CGoHandle, _idx int, _vl *C.char) {
|
|
922
|
+
s := deptrFromHandle_Slice_string(handle)
|
|
923
|
+
s[_idx] = C.GoString(_vl)
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
//export Slice_string_append
|
|
927
|
+
func Slice_string_append(handle CGoHandle, _vl *C.char) {
|
|
928
|
+
s := ptrFromHandle_Slice_string(handle)
|
|
929
|
+
*s = append(*s, C.GoString(_vl))
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
// Converters for implicit pointer handles for type: []uint
|
|
933
|
+
func ptrFromHandle_Slice_uint(h CGoHandle) *[]uint {
|
|
934
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]uint")
|
|
935
|
+
if p == nil {
|
|
936
|
+
return nil
|
|
937
|
+
}
|
|
938
|
+
return p.(*[]uint)
|
|
939
|
+
}
|
|
940
|
+
func deptrFromHandle_Slice_uint(h CGoHandle) []uint {
|
|
941
|
+
p := ptrFromHandle_Slice_uint(h)
|
|
942
|
+
if p == nil {
|
|
943
|
+
return nil
|
|
944
|
+
}
|
|
945
|
+
return *p
|
|
946
|
+
}
|
|
947
|
+
func handleFromPtr_Slice_uint(p interface{}) CGoHandle {
|
|
948
|
+
return CGoHandle(gopyh.Register("[]uint", p))
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
// --- wrapping slice: []uint ---
|
|
952
|
+
//
|
|
953
|
+
//export Slice_uint_CTor
|
|
954
|
+
func Slice_uint_CTor() CGoHandle {
|
|
955
|
+
return CGoHandle(handleFromPtr_Slice_uint(&[]uint{}))
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
//export Slice_uint_len
|
|
959
|
+
func Slice_uint_len(handle CGoHandle) int {
|
|
960
|
+
return len(deptrFromHandle_Slice_uint(handle))
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
//export Slice_uint_elem
|
|
964
|
+
func Slice_uint_elem(handle CGoHandle, _idx int) C.ulonglong {
|
|
965
|
+
s := deptrFromHandle_Slice_uint(handle)
|
|
966
|
+
return C.ulonglong(s[_idx])
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
//export Slice_uint_subslice
|
|
970
|
+
func Slice_uint_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
971
|
+
s := deptrFromHandle_Slice_uint(handle)
|
|
972
|
+
ss := s[_st:_ed]
|
|
973
|
+
return CGoHandle(handleFromPtr_Slice_uint(&ss))
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
//export Slice_uint_set
|
|
977
|
+
func Slice_uint_set(handle CGoHandle, _idx int, _vl C.ulonglong) {
|
|
978
|
+
s := deptrFromHandle_Slice_uint(handle)
|
|
979
|
+
s[_idx] = uint(_vl)
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
//export Slice_uint_append
|
|
983
|
+
func Slice_uint_append(handle CGoHandle, _vl C.ulonglong) {
|
|
984
|
+
s := ptrFromHandle_Slice_uint(handle)
|
|
985
|
+
*s = append(*s, uint(_vl))
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
// Converters for implicit pointer handles for type: []uint16
|
|
989
|
+
func ptrFromHandle_Slice_uint16(h CGoHandle) *[]uint16 {
|
|
990
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]uint16")
|
|
991
|
+
if p == nil {
|
|
992
|
+
return nil
|
|
993
|
+
}
|
|
994
|
+
return p.(*[]uint16)
|
|
995
|
+
}
|
|
996
|
+
func deptrFromHandle_Slice_uint16(h CGoHandle) []uint16 {
|
|
997
|
+
p := ptrFromHandle_Slice_uint16(h)
|
|
998
|
+
if p == nil {
|
|
999
|
+
return nil
|
|
1000
|
+
}
|
|
1001
|
+
return *p
|
|
1002
|
+
}
|
|
1003
|
+
func handleFromPtr_Slice_uint16(p interface{}) CGoHandle {
|
|
1004
|
+
return CGoHandle(gopyh.Register("[]uint16", p))
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
// --- wrapping slice: []uint16 ---
|
|
1008
|
+
//
|
|
1009
|
+
//export Slice_uint16_CTor
|
|
1010
|
+
func Slice_uint16_CTor() CGoHandle {
|
|
1011
|
+
return CGoHandle(handleFromPtr_Slice_uint16(&[]uint16{}))
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
//export Slice_uint16_len
|
|
1015
|
+
func Slice_uint16_len(handle CGoHandle) int {
|
|
1016
|
+
return len(deptrFromHandle_Slice_uint16(handle))
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
//export Slice_uint16_elem
|
|
1020
|
+
func Slice_uint16_elem(handle CGoHandle, _idx int) C.ushort {
|
|
1021
|
+
s := deptrFromHandle_Slice_uint16(handle)
|
|
1022
|
+
return C.ushort(s[_idx])
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
//export Slice_uint16_subslice
|
|
1026
|
+
func Slice_uint16_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
1027
|
+
s := deptrFromHandle_Slice_uint16(handle)
|
|
1028
|
+
ss := s[_st:_ed]
|
|
1029
|
+
return CGoHandle(handleFromPtr_Slice_uint16(&ss))
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
//export Slice_uint16_set
|
|
1033
|
+
func Slice_uint16_set(handle CGoHandle, _idx int, _vl C.ushort) {
|
|
1034
|
+
s := deptrFromHandle_Slice_uint16(handle)
|
|
1035
|
+
s[_idx] = uint16(_vl)
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
//export Slice_uint16_append
|
|
1039
|
+
func Slice_uint16_append(handle CGoHandle, _vl C.ushort) {
|
|
1040
|
+
s := ptrFromHandle_Slice_uint16(handle)
|
|
1041
|
+
*s = append(*s, uint16(_vl))
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
// Converters for implicit pointer handles for type: []uint32
|
|
1045
|
+
func ptrFromHandle_Slice_uint32(h CGoHandle) *[]uint32 {
|
|
1046
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]uint32")
|
|
1047
|
+
if p == nil {
|
|
1048
|
+
return nil
|
|
1049
|
+
}
|
|
1050
|
+
return p.(*[]uint32)
|
|
1051
|
+
}
|
|
1052
|
+
func deptrFromHandle_Slice_uint32(h CGoHandle) []uint32 {
|
|
1053
|
+
p := ptrFromHandle_Slice_uint32(h)
|
|
1054
|
+
if p == nil {
|
|
1055
|
+
return nil
|
|
1056
|
+
}
|
|
1057
|
+
return *p
|
|
1058
|
+
}
|
|
1059
|
+
func handleFromPtr_Slice_uint32(p interface{}) CGoHandle {
|
|
1060
|
+
return CGoHandle(gopyh.Register("[]uint32", p))
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
// --- wrapping slice: []uint32 ---
|
|
1064
|
+
//
|
|
1065
|
+
//export Slice_uint32_CTor
|
|
1066
|
+
func Slice_uint32_CTor() CGoHandle {
|
|
1067
|
+
return CGoHandle(handleFromPtr_Slice_uint32(&[]uint32{}))
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
//export Slice_uint32_len
|
|
1071
|
+
func Slice_uint32_len(handle CGoHandle) int {
|
|
1072
|
+
return len(deptrFromHandle_Slice_uint32(handle))
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
//export Slice_uint32_elem
|
|
1076
|
+
func Slice_uint32_elem(handle CGoHandle, _idx int) C.ulong {
|
|
1077
|
+
s := deptrFromHandle_Slice_uint32(handle)
|
|
1078
|
+
return C.ulong(s[_idx])
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
//export Slice_uint32_subslice
|
|
1082
|
+
func Slice_uint32_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
1083
|
+
s := deptrFromHandle_Slice_uint32(handle)
|
|
1084
|
+
ss := s[_st:_ed]
|
|
1085
|
+
return CGoHandle(handleFromPtr_Slice_uint32(&ss))
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
//export Slice_uint32_set
|
|
1089
|
+
func Slice_uint32_set(handle CGoHandle, _idx int, _vl C.ulong) {
|
|
1090
|
+
s := deptrFromHandle_Slice_uint32(handle)
|
|
1091
|
+
s[_idx] = uint32(_vl)
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
//export Slice_uint32_append
|
|
1095
|
+
func Slice_uint32_append(handle CGoHandle, _vl C.ulong) {
|
|
1096
|
+
s := ptrFromHandle_Slice_uint32(handle)
|
|
1097
|
+
*s = append(*s, uint32(_vl))
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
// Converters for implicit pointer handles for type: []uint64
|
|
1101
|
+
func ptrFromHandle_Slice_uint64(h CGoHandle) *[]uint64 {
|
|
1102
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]uint64")
|
|
1103
|
+
if p == nil {
|
|
1104
|
+
return nil
|
|
1105
|
+
}
|
|
1106
|
+
return p.(*[]uint64)
|
|
1107
|
+
}
|
|
1108
|
+
func deptrFromHandle_Slice_uint64(h CGoHandle) []uint64 {
|
|
1109
|
+
p := ptrFromHandle_Slice_uint64(h)
|
|
1110
|
+
if p == nil {
|
|
1111
|
+
return nil
|
|
1112
|
+
}
|
|
1113
|
+
return *p
|
|
1114
|
+
}
|
|
1115
|
+
func handleFromPtr_Slice_uint64(p interface{}) CGoHandle {
|
|
1116
|
+
return CGoHandle(gopyh.Register("[]uint64", p))
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
// --- wrapping slice: []uint64 ---
|
|
1120
|
+
//
|
|
1121
|
+
//export Slice_uint64_CTor
|
|
1122
|
+
func Slice_uint64_CTor() CGoHandle {
|
|
1123
|
+
return CGoHandle(handleFromPtr_Slice_uint64(&[]uint64{}))
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
//export Slice_uint64_len
|
|
1127
|
+
func Slice_uint64_len(handle CGoHandle) int {
|
|
1128
|
+
return len(deptrFromHandle_Slice_uint64(handle))
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
//export Slice_uint64_elem
|
|
1132
|
+
func Slice_uint64_elem(handle CGoHandle, _idx int) C.ulonglong {
|
|
1133
|
+
s := deptrFromHandle_Slice_uint64(handle)
|
|
1134
|
+
return C.ulonglong(s[_idx])
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
//export Slice_uint64_subslice
|
|
1138
|
+
func Slice_uint64_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
1139
|
+
s := deptrFromHandle_Slice_uint64(handle)
|
|
1140
|
+
ss := s[_st:_ed]
|
|
1141
|
+
return CGoHandle(handleFromPtr_Slice_uint64(&ss))
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
//export Slice_uint64_set
|
|
1145
|
+
func Slice_uint64_set(handle CGoHandle, _idx int, _vl C.ulonglong) {
|
|
1146
|
+
s := deptrFromHandle_Slice_uint64(handle)
|
|
1147
|
+
s[_idx] = uint64(_vl)
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
//export Slice_uint64_append
|
|
1151
|
+
func Slice_uint64_append(handle CGoHandle, _vl C.ulonglong) {
|
|
1152
|
+
s := ptrFromHandle_Slice_uint64(handle)
|
|
1153
|
+
*s = append(*s, uint64(_vl))
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
// Converters for implicit pointer handles for type: []uint8
|
|
1157
|
+
func ptrFromHandle_Slice_uint8(h CGoHandle) *[]uint8 {
|
|
1158
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]uint8")
|
|
1159
|
+
if p == nil {
|
|
1160
|
+
return nil
|
|
1161
|
+
}
|
|
1162
|
+
return p.(*[]uint8)
|
|
1163
|
+
}
|
|
1164
|
+
func deptrFromHandle_Slice_uint8(h CGoHandle) []uint8 {
|
|
1165
|
+
p := ptrFromHandle_Slice_uint8(h)
|
|
1166
|
+
if p == nil {
|
|
1167
|
+
return nil
|
|
1168
|
+
}
|
|
1169
|
+
return *p
|
|
1170
|
+
}
|
|
1171
|
+
func handleFromPtr_Slice_uint8(p interface{}) CGoHandle {
|
|
1172
|
+
return CGoHandle(gopyh.Register("[]uint8", p))
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
// --- wrapping slice: []uint8 ---
|
|
1176
|
+
//
|
|
1177
|
+
//export Slice_uint8_CTor
|
|
1178
|
+
func Slice_uint8_CTor() CGoHandle {
|
|
1179
|
+
return CGoHandle(handleFromPtr_Slice_uint8(&[]uint8{}))
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
//export Slice_uint8_len
|
|
1183
|
+
func Slice_uint8_len(handle CGoHandle) int {
|
|
1184
|
+
return len(deptrFromHandle_Slice_uint8(handle))
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
//export Slice_uint8_elem
|
|
1188
|
+
func Slice_uint8_elem(handle CGoHandle, _idx int) C.uchar {
|
|
1189
|
+
s := deptrFromHandle_Slice_uint8(handle)
|
|
1190
|
+
return C.uchar(s[_idx])
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
//export Slice_uint8_subslice
|
|
1194
|
+
func Slice_uint8_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
1195
|
+
s := deptrFromHandle_Slice_uint8(handle)
|
|
1196
|
+
ss := s[_st:_ed]
|
|
1197
|
+
return CGoHandle(handleFromPtr_Slice_uint8(&ss))
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
//export Slice_uint8_set
|
|
1201
|
+
func Slice_uint8_set(handle CGoHandle, _idx int, _vl C.uchar) {
|
|
1202
|
+
s := deptrFromHandle_Slice_uint8(handle)
|
|
1203
|
+
s[_idx] = uint8(_vl)
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
//export Slice_uint8_append
|
|
1207
|
+
func Slice_uint8_append(handle CGoHandle, _vl C.uchar) {
|
|
1208
|
+
s := ptrFromHandle_Slice_uint8(handle)
|
|
1209
|
+
*s = append(*s, uint8(_vl))
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
// ---- Package: whatsapp ---
|
|
1213
|
+
|
|
1214
|
+
// ---- Types ---
|
|
1215
|
+
|
|
1216
|
+
// Converters for pointer handles for type: *whatsapp.Attachment
|
|
1217
|
+
func ptrFromHandle_Ptr_whatsapp_Attachment(h CGoHandle) *whatsapp.Attachment {
|
|
1218
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Attachment")
|
|
1219
|
+
if p == nil {
|
|
1220
|
+
return nil
|
|
1221
|
+
}
|
|
1222
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment)
|
|
1223
|
+
}
|
|
1224
|
+
func handleFromPtr_Ptr_whatsapp_Attachment(p interface{}) CGoHandle {
|
|
1225
|
+
return CGoHandle(gopyh.Register("*whatsapp.Attachment", p))
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
// Converters for pointer handles for type: *whatsapp.Avatar
|
|
1229
|
+
func ptrFromHandle_Ptr_whatsapp_Avatar(h CGoHandle) *whatsapp.Avatar {
|
|
1230
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Avatar")
|
|
1231
|
+
if p == nil {
|
|
1232
|
+
return nil
|
|
1233
|
+
}
|
|
1234
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Avatar{})).(*whatsapp.Avatar)
|
|
1235
|
+
}
|
|
1236
|
+
func handleFromPtr_Ptr_whatsapp_Avatar(p interface{}) CGoHandle {
|
|
1237
|
+
return CGoHandle(gopyh.Register("*whatsapp.Avatar", p))
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
// Converters for pointer handles for type: *whatsapp.Call
|
|
1241
|
+
func ptrFromHandle_Ptr_whatsapp_Call(h CGoHandle) *whatsapp.Call {
|
|
1242
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Call")
|
|
1243
|
+
if p == nil {
|
|
1244
|
+
return nil
|
|
1245
|
+
}
|
|
1246
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Call{})).(*whatsapp.Call)
|
|
1247
|
+
}
|
|
1248
|
+
func handleFromPtr_Ptr_whatsapp_Call(p interface{}) CGoHandle {
|
|
1249
|
+
return CGoHandle(gopyh.Register("*whatsapp.Call", p))
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
// Converters for pointer handles for type: *whatsapp.ChatState
|
|
1253
|
+
func ptrFromHandle_Ptr_whatsapp_ChatState(h CGoHandle) *whatsapp.ChatState {
|
|
1254
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.ChatState")
|
|
1255
|
+
if p == nil {
|
|
1256
|
+
return nil
|
|
1257
|
+
}
|
|
1258
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.ChatState{})).(*whatsapp.ChatState)
|
|
1259
|
+
}
|
|
1260
|
+
func handleFromPtr_Ptr_whatsapp_ChatState(p interface{}) CGoHandle {
|
|
1261
|
+
return CGoHandle(gopyh.Register("*whatsapp.ChatState", p))
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
// Converters for pointer handles for type: *whatsapp.Connect
|
|
1265
|
+
func ptrFromHandle_Ptr_whatsapp_Connect(h CGoHandle) *whatsapp.Connect {
|
|
1266
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Connect")
|
|
1267
|
+
if p == nil {
|
|
1268
|
+
return nil
|
|
1269
|
+
}
|
|
1270
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Connect{})).(*whatsapp.Connect)
|
|
1271
|
+
}
|
|
1272
|
+
func handleFromPtr_Ptr_whatsapp_Connect(p interface{}) CGoHandle {
|
|
1273
|
+
return CGoHandle(gopyh.Register("*whatsapp.Connect", p))
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
// Converters for pointer handles for type: *whatsapp.Contact
|
|
1277
|
+
func ptrFromHandle_Ptr_whatsapp_Contact(h CGoHandle) *whatsapp.Contact {
|
|
1278
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Contact")
|
|
1279
|
+
if p == nil {
|
|
1280
|
+
return nil
|
|
1281
|
+
}
|
|
1282
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Contact{})).(*whatsapp.Contact)
|
|
1283
|
+
}
|
|
1284
|
+
func handleFromPtr_Ptr_whatsapp_Contact(p interface{}) CGoHandle {
|
|
1285
|
+
return CGoHandle(gopyh.Register("*whatsapp.Contact", p))
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
// Converters for pointer handles for type: *whatsapp.EventPayload
|
|
1289
|
+
func ptrFromHandle_Ptr_whatsapp_EventPayload(h CGoHandle) *whatsapp.EventPayload {
|
|
1290
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.EventPayload")
|
|
1291
|
+
if p == nil {
|
|
1292
|
+
return nil
|
|
1293
|
+
}
|
|
1294
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.EventPayload{})).(*whatsapp.EventPayload)
|
|
1295
|
+
}
|
|
1296
|
+
func handleFromPtr_Ptr_whatsapp_EventPayload(p interface{}) CGoHandle {
|
|
1297
|
+
return CGoHandle(gopyh.Register("*whatsapp.EventPayload", p))
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
// Converters for pointer handles for type: *whatsapp.Gateway
|
|
1301
|
+
func ptrFromHandle_Ptr_whatsapp_Gateway(h CGoHandle) *whatsapp.Gateway {
|
|
1302
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Gateway")
|
|
1303
|
+
if p == nil {
|
|
1304
|
+
return nil
|
|
1305
|
+
}
|
|
1306
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway)
|
|
1307
|
+
}
|
|
1308
|
+
func handleFromPtr_Ptr_whatsapp_Gateway(p interface{}) CGoHandle {
|
|
1309
|
+
return CGoHandle(gopyh.Register("*whatsapp.Gateway", p))
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
// Converters for pointer handles for type: *whatsapp.Group
|
|
1313
|
+
func ptrFromHandle_Ptr_whatsapp_Group(h CGoHandle) *whatsapp.Group {
|
|
1314
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Group")
|
|
1315
|
+
if p == nil {
|
|
1316
|
+
return nil
|
|
1317
|
+
}
|
|
1318
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Group{})).(*whatsapp.Group)
|
|
1319
|
+
}
|
|
1320
|
+
func handleFromPtr_Ptr_whatsapp_Group(p interface{}) CGoHandle {
|
|
1321
|
+
return CGoHandle(gopyh.Register("*whatsapp.Group", p))
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
// Converters for pointer handles for type: *whatsapp.GroupParticipant
|
|
1325
|
+
func ptrFromHandle_Ptr_whatsapp_GroupParticipant(h CGoHandle) *whatsapp.GroupParticipant {
|
|
1326
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.GroupParticipant")
|
|
1327
|
+
if p == nil {
|
|
1328
|
+
return nil
|
|
1329
|
+
}
|
|
1330
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.GroupParticipant{})).(*whatsapp.GroupParticipant)
|
|
1331
|
+
}
|
|
1332
|
+
func handleFromPtr_Ptr_whatsapp_GroupParticipant(p interface{}) CGoHandle {
|
|
1333
|
+
return CGoHandle(gopyh.Register("*whatsapp.GroupParticipant", p))
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
// Converters for pointer handles for type: *whatsapp.GroupSubject
|
|
1337
|
+
func ptrFromHandle_Ptr_whatsapp_GroupSubject(h CGoHandle) *whatsapp.GroupSubject {
|
|
1338
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.GroupSubject")
|
|
1339
|
+
if p == nil {
|
|
1340
|
+
return nil
|
|
1341
|
+
}
|
|
1342
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.GroupSubject{})).(*whatsapp.GroupSubject)
|
|
1343
|
+
}
|
|
1344
|
+
func handleFromPtr_Ptr_whatsapp_GroupSubject(p interface{}) CGoHandle {
|
|
1345
|
+
return CGoHandle(gopyh.Register("*whatsapp.GroupSubject", p))
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
// Converters for pointer handles for type: *whatsapp.LinkedDevice
|
|
1349
|
+
func ptrFromHandle_Ptr_whatsapp_LinkedDevice(h CGoHandle) *whatsapp.LinkedDevice {
|
|
1350
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.LinkedDevice")
|
|
1351
|
+
if p == nil {
|
|
1352
|
+
return nil
|
|
1353
|
+
}
|
|
1354
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice)
|
|
1355
|
+
}
|
|
1356
|
+
func handleFromPtr_Ptr_whatsapp_LinkedDevice(p interface{}) CGoHandle {
|
|
1357
|
+
return CGoHandle(gopyh.Register("*whatsapp.LinkedDevice", p))
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
// Converters for pointer handles for type: *whatsapp.Location
|
|
1361
|
+
func ptrFromHandle_Ptr_whatsapp_Location(h CGoHandle) *whatsapp.Location {
|
|
1362
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Location")
|
|
1363
|
+
if p == nil {
|
|
1364
|
+
return nil
|
|
1365
|
+
}
|
|
1366
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Location{})).(*whatsapp.Location)
|
|
1367
|
+
}
|
|
1368
|
+
func handleFromPtr_Ptr_whatsapp_Location(p interface{}) CGoHandle {
|
|
1369
|
+
return CGoHandle(gopyh.Register("*whatsapp.Location", p))
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
// Converters for pointer handles for type: *whatsapp.Message
|
|
1373
|
+
func ptrFromHandle_Ptr_whatsapp_Message(h CGoHandle) *whatsapp.Message {
|
|
1374
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Message")
|
|
1375
|
+
if p == nil {
|
|
1376
|
+
return nil
|
|
1377
|
+
}
|
|
1378
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Message{})).(*whatsapp.Message)
|
|
1379
|
+
}
|
|
1380
|
+
func handleFromPtr_Ptr_whatsapp_Message(p interface{}) CGoHandle {
|
|
1381
|
+
return CGoHandle(gopyh.Register("*whatsapp.Message", p))
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
// Converters for pointer handles for type: *whatsapp.Presence
|
|
1385
|
+
func ptrFromHandle_Ptr_whatsapp_Presence(h CGoHandle) *whatsapp.Presence {
|
|
1386
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Presence")
|
|
1387
|
+
if p == nil {
|
|
1388
|
+
return nil
|
|
1389
|
+
}
|
|
1390
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Presence{})).(*whatsapp.Presence)
|
|
1391
|
+
}
|
|
1392
|
+
func handleFromPtr_Ptr_whatsapp_Presence(p interface{}) CGoHandle {
|
|
1393
|
+
return CGoHandle(gopyh.Register("*whatsapp.Presence", p))
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
// Converters for pointer handles for type: *whatsapp.Preview
|
|
1397
|
+
func ptrFromHandle_Ptr_whatsapp_Preview(h CGoHandle) *whatsapp.Preview {
|
|
1398
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Preview")
|
|
1399
|
+
if p == nil {
|
|
1400
|
+
return nil
|
|
1401
|
+
}
|
|
1402
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Preview{})).(*whatsapp.Preview)
|
|
1403
|
+
}
|
|
1404
|
+
func handleFromPtr_Ptr_whatsapp_Preview(p interface{}) CGoHandle {
|
|
1405
|
+
return CGoHandle(gopyh.Register("*whatsapp.Preview", p))
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
// Converters for pointer handles for type: *whatsapp.Receipt
|
|
1409
|
+
func ptrFromHandle_Ptr_whatsapp_Receipt(h CGoHandle) *whatsapp.Receipt {
|
|
1410
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Receipt")
|
|
1411
|
+
if p == nil {
|
|
1412
|
+
return nil
|
|
1413
|
+
}
|
|
1414
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Receipt{})).(*whatsapp.Receipt)
|
|
1415
|
+
}
|
|
1416
|
+
func handleFromPtr_Ptr_whatsapp_Receipt(p interface{}) CGoHandle {
|
|
1417
|
+
return CGoHandle(gopyh.Register("*whatsapp.Receipt", p))
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
// Converters for pointer handles for type: *whatsapp.Session
|
|
1421
|
+
func ptrFromHandle_Ptr_whatsapp_Session(h CGoHandle) *whatsapp.Session {
|
|
1422
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Session")
|
|
1423
|
+
if p == nil {
|
|
1424
|
+
return nil
|
|
1425
|
+
}
|
|
1426
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session)
|
|
1427
|
+
}
|
|
1428
|
+
func handleFromPtr_Ptr_whatsapp_Session(p interface{}) CGoHandle {
|
|
1429
|
+
return CGoHandle(gopyh.Register("*whatsapp.Session", p))
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
// Converters for implicit pointer handles for type: []whatsapp.Attachment
|
|
1433
|
+
func ptrFromHandle_Slice_whatsapp_Attachment(h CGoHandle) *[]whatsapp.Attachment {
|
|
1434
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]whatsapp.Attachment")
|
|
1435
|
+
if p == nil {
|
|
1436
|
+
return nil
|
|
1437
|
+
}
|
|
1438
|
+
return p.(*[]whatsapp.Attachment)
|
|
1439
|
+
}
|
|
1440
|
+
func deptrFromHandle_Slice_whatsapp_Attachment(h CGoHandle) []whatsapp.Attachment {
|
|
1441
|
+
p := ptrFromHandle_Slice_whatsapp_Attachment(h)
|
|
1442
|
+
if p == nil {
|
|
1443
|
+
return nil
|
|
1444
|
+
}
|
|
1445
|
+
return *p
|
|
1446
|
+
}
|
|
1447
|
+
func handleFromPtr_Slice_whatsapp_Attachment(p interface{}) CGoHandle {
|
|
1448
|
+
return CGoHandle(gopyh.Register("[]whatsapp.Attachment", p))
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
// --- wrapping slice: []whatsapp.Attachment ---
|
|
1452
|
+
//
|
|
1453
|
+
//export Slice_whatsapp_Attachment_CTor
|
|
1454
|
+
func Slice_whatsapp_Attachment_CTor() CGoHandle {
|
|
1455
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_Attachment(&[]whatsapp.Attachment{}))
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
//export Slice_whatsapp_Attachment_len
|
|
1459
|
+
func Slice_whatsapp_Attachment_len(handle CGoHandle) int {
|
|
1460
|
+
return len(deptrFromHandle_Slice_whatsapp_Attachment(handle))
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
//export Slice_whatsapp_Attachment_elem
|
|
1464
|
+
func Slice_whatsapp_Attachment_elem(handle CGoHandle, _idx int) CGoHandle {
|
|
1465
|
+
s := deptrFromHandle_Slice_whatsapp_Attachment(handle)
|
|
1466
|
+
return handleFromPtr_whatsapp_Attachment(&(s[_idx]))
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
//export Slice_whatsapp_Attachment_subslice
|
|
1470
|
+
func Slice_whatsapp_Attachment_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
1471
|
+
s := deptrFromHandle_Slice_whatsapp_Attachment(handle)
|
|
1472
|
+
ss := s[_st:_ed]
|
|
1473
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_Attachment(&ss))
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
//export Slice_whatsapp_Attachment_set
|
|
1477
|
+
func Slice_whatsapp_Attachment_set(handle CGoHandle, _idx int, _vl CGoHandle) {
|
|
1478
|
+
s := deptrFromHandle_Slice_whatsapp_Attachment(handle)
|
|
1479
|
+
s[_idx] = *ptrFromHandle_whatsapp_Attachment(_vl)
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
//export Slice_whatsapp_Attachment_append
|
|
1483
|
+
func Slice_whatsapp_Attachment_append(handle CGoHandle, _vl CGoHandle) {
|
|
1484
|
+
s := ptrFromHandle_Slice_whatsapp_Attachment(handle)
|
|
1485
|
+
*s = append(*s, *ptrFromHandle_whatsapp_Attachment(_vl))
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
// Converters for implicit pointer handles for type: []whatsapp.Contact
|
|
1489
|
+
func ptrFromHandle_Slice_whatsapp_Contact(h CGoHandle) *[]whatsapp.Contact {
|
|
1490
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]whatsapp.Contact")
|
|
1491
|
+
if p == nil {
|
|
1492
|
+
return nil
|
|
1493
|
+
}
|
|
1494
|
+
return p.(*[]whatsapp.Contact)
|
|
1495
|
+
}
|
|
1496
|
+
func deptrFromHandle_Slice_whatsapp_Contact(h CGoHandle) []whatsapp.Contact {
|
|
1497
|
+
p := ptrFromHandle_Slice_whatsapp_Contact(h)
|
|
1498
|
+
if p == nil {
|
|
1499
|
+
return nil
|
|
1500
|
+
}
|
|
1501
|
+
return *p
|
|
1502
|
+
}
|
|
1503
|
+
func handleFromPtr_Slice_whatsapp_Contact(p interface{}) CGoHandle {
|
|
1504
|
+
return CGoHandle(gopyh.Register("[]whatsapp.Contact", p))
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
// --- wrapping slice: []whatsapp.Contact ---
|
|
1508
|
+
//
|
|
1509
|
+
//export Slice_whatsapp_Contact_CTor
|
|
1510
|
+
func Slice_whatsapp_Contact_CTor() CGoHandle {
|
|
1511
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_Contact(&[]whatsapp.Contact{}))
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
//export Slice_whatsapp_Contact_len
|
|
1515
|
+
func Slice_whatsapp_Contact_len(handle CGoHandle) int {
|
|
1516
|
+
return len(deptrFromHandle_Slice_whatsapp_Contact(handle))
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
//export Slice_whatsapp_Contact_elem
|
|
1520
|
+
func Slice_whatsapp_Contact_elem(handle CGoHandle, _idx int) CGoHandle {
|
|
1521
|
+
s := deptrFromHandle_Slice_whatsapp_Contact(handle)
|
|
1522
|
+
return handleFromPtr_whatsapp_Contact(&(s[_idx]))
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
//export Slice_whatsapp_Contact_subslice
|
|
1526
|
+
func Slice_whatsapp_Contact_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
1527
|
+
s := deptrFromHandle_Slice_whatsapp_Contact(handle)
|
|
1528
|
+
ss := s[_st:_ed]
|
|
1529
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_Contact(&ss))
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
//export Slice_whatsapp_Contact_set
|
|
1533
|
+
func Slice_whatsapp_Contact_set(handle CGoHandle, _idx int, _vl CGoHandle) {
|
|
1534
|
+
s := deptrFromHandle_Slice_whatsapp_Contact(handle)
|
|
1535
|
+
s[_idx] = *ptrFromHandle_whatsapp_Contact(_vl)
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
//export Slice_whatsapp_Contact_append
|
|
1539
|
+
func Slice_whatsapp_Contact_append(handle CGoHandle, _vl CGoHandle) {
|
|
1540
|
+
s := ptrFromHandle_Slice_whatsapp_Contact(handle)
|
|
1541
|
+
*s = append(*s, *ptrFromHandle_whatsapp_Contact(_vl))
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
// Converters for implicit pointer handles for type: []whatsapp.Group
|
|
1545
|
+
func ptrFromHandle_Slice_whatsapp_Group(h CGoHandle) *[]whatsapp.Group {
|
|
1546
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]whatsapp.Group")
|
|
1547
|
+
if p == nil {
|
|
1548
|
+
return nil
|
|
1549
|
+
}
|
|
1550
|
+
return p.(*[]whatsapp.Group)
|
|
1551
|
+
}
|
|
1552
|
+
func deptrFromHandle_Slice_whatsapp_Group(h CGoHandle) []whatsapp.Group {
|
|
1553
|
+
p := ptrFromHandle_Slice_whatsapp_Group(h)
|
|
1554
|
+
if p == nil {
|
|
1555
|
+
return nil
|
|
1556
|
+
}
|
|
1557
|
+
return *p
|
|
1558
|
+
}
|
|
1559
|
+
func handleFromPtr_Slice_whatsapp_Group(p interface{}) CGoHandle {
|
|
1560
|
+
return CGoHandle(gopyh.Register("[]whatsapp.Group", p))
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
// --- wrapping slice: []whatsapp.Group ---
|
|
1564
|
+
//
|
|
1565
|
+
//export Slice_whatsapp_Group_CTor
|
|
1566
|
+
func Slice_whatsapp_Group_CTor() CGoHandle {
|
|
1567
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_Group(&[]whatsapp.Group{}))
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
//export Slice_whatsapp_Group_len
|
|
1571
|
+
func Slice_whatsapp_Group_len(handle CGoHandle) int {
|
|
1572
|
+
return len(deptrFromHandle_Slice_whatsapp_Group(handle))
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
//export Slice_whatsapp_Group_elem
|
|
1576
|
+
func Slice_whatsapp_Group_elem(handle CGoHandle, _idx int) CGoHandle {
|
|
1577
|
+
s := deptrFromHandle_Slice_whatsapp_Group(handle)
|
|
1578
|
+
return handleFromPtr_whatsapp_Group(&(s[_idx]))
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
//export Slice_whatsapp_Group_subslice
|
|
1582
|
+
func Slice_whatsapp_Group_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
1583
|
+
s := deptrFromHandle_Slice_whatsapp_Group(handle)
|
|
1584
|
+
ss := s[_st:_ed]
|
|
1585
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_Group(&ss))
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
//export Slice_whatsapp_Group_set
|
|
1589
|
+
func Slice_whatsapp_Group_set(handle CGoHandle, _idx int, _vl CGoHandle) {
|
|
1590
|
+
s := deptrFromHandle_Slice_whatsapp_Group(handle)
|
|
1591
|
+
s[_idx] = *ptrFromHandle_whatsapp_Group(_vl)
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
//export Slice_whatsapp_Group_append
|
|
1595
|
+
func Slice_whatsapp_Group_append(handle CGoHandle, _vl CGoHandle) {
|
|
1596
|
+
s := ptrFromHandle_Slice_whatsapp_Group(handle)
|
|
1597
|
+
*s = append(*s, *ptrFromHandle_whatsapp_Group(_vl))
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
// Converters for implicit pointer handles for type: []whatsapp.GroupParticipant
|
|
1601
|
+
func ptrFromHandle_Slice_whatsapp_GroupParticipant(h CGoHandle) *[]whatsapp.GroupParticipant {
|
|
1602
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]whatsapp.GroupParticipant")
|
|
1603
|
+
if p == nil {
|
|
1604
|
+
return nil
|
|
1605
|
+
}
|
|
1606
|
+
return p.(*[]whatsapp.GroupParticipant)
|
|
1607
|
+
}
|
|
1608
|
+
func deptrFromHandle_Slice_whatsapp_GroupParticipant(h CGoHandle) []whatsapp.GroupParticipant {
|
|
1609
|
+
p := ptrFromHandle_Slice_whatsapp_GroupParticipant(h)
|
|
1610
|
+
if p == nil {
|
|
1611
|
+
return nil
|
|
1612
|
+
}
|
|
1613
|
+
return *p
|
|
1614
|
+
}
|
|
1615
|
+
func handleFromPtr_Slice_whatsapp_GroupParticipant(p interface{}) CGoHandle {
|
|
1616
|
+
return CGoHandle(gopyh.Register("[]whatsapp.GroupParticipant", p))
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
// --- wrapping slice: []whatsapp.GroupParticipant ---
|
|
1620
|
+
//
|
|
1621
|
+
//export Slice_whatsapp_GroupParticipant_CTor
|
|
1622
|
+
func Slice_whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
1623
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_GroupParticipant(&[]whatsapp.GroupParticipant{}))
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
//export Slice_whatsapp_GroupParticipant_len
|
|
1627
|
+
func Slice_whatsapp_GroupParticipant_len(handle CGoHandle) int {
|
|
1628
|
+
return len(deptrFromHandle_Slice_whatsapp_GroupParticipant(handle))
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
//export Slice_whatsapp_GroupParticipant_elem
|
|
1632
|
+
func Slice_whatsapp_GroupParticipant_elem(handle CGoHandle, _idx int) CGoHandle {
|
|
1633
|
+
s := deptrFromHandle_Slice_whatsapp_GroupParticipant(handle)
|
|
1634
|
+
return handleFromPtr_whatsapp_GroupParticipant(&(s[_idx]))
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
//export Slice_whatsapp_GroupParticipant_subslice
|
|
1638
|
+
func Slice_whatsapp_GroupParticipant_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
1639
|
+
s := deptrFromHandle_Slice_whatsapp_GroupParticipant(handle)
|
|
1640
|
+
ss := s[_st:_ed]
|
|
1641
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_GroupParticipant(&ss))
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
//export Slice_whatsapp_GroupParticipant_set
|
|
1645
|
+
func Slice_whatsapp_GroupParticipant_set(handle CGoHandle, _idx int, _vl CGoHandle) {
|
|
1646
|
+
s := deptrFromHandle_Slice_whatsapp_GroupParticipant(handle)
|
|
1647
|
+
s[_idx] = *ptrFromHandle_whatsapp_GroupParticipant(_vl)
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
//export Slice_whatsapp_GroupParticipant_append
|
|
1651
|
+
func Slice_whatsapp_GroupParticipant_append(handle CGoHandle, _vl CGoHandle) {
|
|
1652
|
+
s := ptrFromHandle_Slice_whatsapp_GroupParticipant(handle)
|
|
1653
|
+
*s = append(*s, *ptrFromHandle_whatsapp_GroupParticipant(_vl))
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
// Converters for implicit pointer handles for type: []whatsapp.Message
|
|
1657
|
+
func ptrFromHandle_Slice_whatsapp_Message(h CGoHandle) *[]whatsapp.Message {
|
|
1658
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]whatsapp.Message")
|
|
1659
|
+
if p == nil {
|
|
1660
|
+
return nil
|
|
1661
|
+
}
|
|
1662
|
+
return p.(*[]whatsapp.Message)
|
|
1663
|
+
}
|
|
1664
|
+
func deptrFromHandle_Slice_whatsapp_Message(h CGoHandle) []whatsapp.Message {
|
|
1665
|
+
p := ptrFromHandle_Slice_whatsapp_Message(h)
|
|
1666
|
+
if p == nil {
|
|
1667
|
+
return nil
|
|
1668
|
+
}
|
|
1669
|
+
return *p
|
|
1670
|
+
}
|
|
1671
|
+
func handleFromPtr_Slice_whatsapp_Message(p interface{}) CGoHandle {
|
|
1672
|
+
return CGoHandle(gopyh.Register("[]whatsapp.Message", p))
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
// --- wrapping slice: []whatsapp.Message ---
|
|
1676
|
+
//
|
|
1677
|
+
//export Slice_whatsapp_Message_CTor
|
|
1678
|
+
func Slice_whatsapp_Message_CTor() CGoHandle {
|
|
1679
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_Message(&[]whatsapp.Message{}))
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
//export Slice_whatsapp_Message_len
|
|
1683
|
+
func Slice_whatsapp_Message_len(handle CGoHandle) int {
|
|
1684
|
+
return len(deptrFromHandle_Slice_whatsapp_Message(handle))
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
//export Slice_whatsapp_Message_elem
|
|
1688
|
+
func Slice_whatsapp_Message_elem(handle CGoHandle, _idx int) CGoHandle {
|
|
1689
|
+
s := deptrFromHandle_Slice_whatsapp_Message(handle)
|
|
1690
|
+
return handleFromPtr_whatsapp_Message(&(s[_idx]))
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
//export Slice_whatsapp_Message_subslice
|
|
1694
|
+
func Slice_whatsapp_Message_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
1695
|
+
s := deptrFromHandle_Slice_whatsapp_Message(handle)
|
|
1696
|
+
ss := s[_st:_ed]
|
|
1697
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_Message(&ss))
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
//export Slice_whatsapp_Message_set
|
|
1701
|
+
func Slice_whatsapp_Message_set(handle CGoHandle, _idx int, _vl CGoHandle) {
|
|
1702
|
+
s := deptrFromHandle_Slice_whatsapp_Message(handle)
|
|
1703
|
+
s[_idx] = *ptrFromHandle_whatsapp_Message(_vl)
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
//export Slice_whatsapp_Message_append
|
|
1707
|
+
func Slice_whatsapp_Message_append(handle CGoHandle, _vl CGoHandle) {
|
|
1708
|
+
s := ptrFromHandle_Slice_whatsapp_Message(handle)
|
|
1709
|
+
*s = append(*s, *ptrFromHandle_whatsapp_Message(_vl))
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
// Converters for implicit pointer handles for type: []whatsapp.Receipt
|
|
1713
|
+
func ptrFromHandle_Slice_whatsapp_Receipt(h CGoHandle) *[]whatsapp.Receipt {
|
|
1714
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "[]whatsapp.Receipt")
|
|
1715
|
+
if p == nil {
|
|
1716
|
+
return nil
|
|
1717
|
+
}
|
|
1718
|
+
return p.(*[]whatsapp.Receipt)
|
|
1719
|
+
}
|
|
1720
|
+
func deptrFromHandle_Slice_whatsapp_Receipt(h CGoHandle) []whatsapp.Receipt {
|
|
1721
|
+
p := ptrFromHandle_Slice_whatsapp_Receipt(h)
|
|
1722
|
+
if p == nil {
|
|
1723
|
+
return nil
|
|
1724
|
+
}
|
|
1725
|
+
return *p
|
|
1726
|
+
}
|
|
1727
|
+
func handleFromPtr_Slice_whatsapp_Receipt(p interface{}) CGoHandle {
|
|
1728
|
+
return CGoHandle(gopyh.Register("[]whatsapp.Receipt", p))
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
// --- wrapping slice: []whatsapp.Receipt ---
|
|
1732
|
+
//
|
|
1733
|
+
//export Slice_whatsapp_Receipt_CTor
|
|
1734
|
+
func Slice_whatsapp_Receipt_CTor() CGoHandle {
|
|
1735
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_Receipt(&[]whatsapp.Receipt{}))
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
//export Slice_whatsapp_Receipt_len
|
|
1739
|
+
func Slice_whatsapp_Receipt_len(handle CGoHandle) int {
|
|
1740
|
+
return len(deptrFromHandle_Slice_whatsapp_Receipt(handle))
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
//export Slice_whatsapp_Receipt_elem
|
|
1744
|
+
func Slice_whatsapp_Receipt_elem(handle CGoHandle, _idx int) CGoHandle {
|
|
1745
|
+
s := deptrFromHandle_Slice_whatsapp_Receipt(handle)
|
|
1746
|
+
return handleFromPtr_whatsapp_Receipt(&(s[_idx]))
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
//export Slice_whatsapp_Receipt_subslice
|
|
1750
|
+
func Slice_whatsapp_Receipt_subslice(handle CGoHandle, _st, _ed int) CGoHandle {
|
|
1751
|
+
s := deptrFromHandle_Slice_whatsapp_Receipt(handle)
|
|
1752
|
+
ss := s[_st:_ed]
|
|
1753
|
+
return CGoHandle(handleFromPtr_Slice_whatsapp_Receipt(&ss))
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
//export Slice_whatsapp_Receipt_set
|
|
1757
|
+
func Slice_whatsapp_Receipt_set(handle CGoHandle, _idx int, _vl CGoHandle) {
|
|
1758
|
+
s := deptrFromHandle_Slice_whatsapp_Receipt(handle)
|
|
1759
|
+
s[_idx] = *ptrFromHandle_whatsapp_Receipt(_vl)
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
//export Slice_whatsapp_Receipt_append
|
|
1763
|
+
func Slice_whatsapp_Receipt_append(handle CGoHandle, _vl CGoHandle) {
|
|
1764
|
+
s := ptrFromHandle_Slice_whatsapp_Receipt(handle)
|
|
1765
|
+
*s = append(*s, *ptrFromHandle_whatsapp_Receipt(_vl))
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
// Converters for non-pointer handles for type: whatsapp.Attachment
|
|
1769
|
+
func ptrFromHandle_whatsapp_Attachment(h CGoHandle) *whatsapp.Attachment {
|
|
1770
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Attachment")
|
|
1771
|
+
if p == nil {
|
|
1772
|
+
return nil
|
|
1773
|
+
}
|
|
1774
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment)
|
|
1775
|
+
}
|
|
1776
|
+
func handleFromPtr_whatsapp_Attachment(p interface{}) CGoHandle {
|
|
1777
|
+
return CGoHandle(gopyh.Register("whatsapp.Attachment", p))
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
// Converters for non-pointer handles for type: whatsapp.Avatar
|
|
1781
|
+
func ptrFromHandle_whatsapp_Avatar(h CGoHandle) *whatsapp.Avatar {
|
|
1782
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Avatar")
|
|
1783
|
+
if p == nil {
|
|
1784
|
+
return nil
|
|
1785
|
+
}
|
|
1786
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Avatar{})).(*whatsapp.Avatar)
|
|
1787
|
+
}
|
|
1788
|
+
func handleFromPtr_whatsapp_Avatar(p interface{}) CGoHandle {
|
|
1789
|
+
return CGoHandle(gopyh.Register("whatsapp.Avatar", p))
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
// Converters for non-pointer handles for type: whatsapp.Call
|
|
1793
|
+
func ptrFromHandle_whatsapp_Call(h CGoHandle) *whatsapp.Call {
|
|
1794
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Call")
|
|
1795
|
+
if p == nil {
|
|
1796
|
+
return nil
|
|
1797
|
+
}
|
|
1798
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Call{})).(*whatsapp.Call)
|
|
1799
|
+
}
|
|
1800
|
+
func handleFromPtr_whatsapp_Call(p interface{}) CGoHandle {
|
|
1801
|
+
return CGoHandle(gopyh.Register("whatsapp.Call", p))
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
// Converters for non-pointer handles for type: whatsapp.ChatState
|
|
1805
|
+
func ptrFromHandle_whatsapp_ChatState(h CGoHandle) *whatsapp.ChatState {
|
|
1806
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.ChatState")
|
|
1807
|
+
if p == nil {
|
|
1808
|
+
return nil
|
|
1809
|
+
}
|
|
1810
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.ChatState{})).(*whatsapp.ChatState)
|
|
1811
|
+
}
|
|
1812
|
+
func handleFromPtr_whatsapp_ChatState(p interface{}) CGoHandle {
|
|
1813
|
+
return CGoHandle(gopyh.Register("whatsapp.ChatState", p))
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
// Converters for non-pointer handles for type: whatsapp.Connect
|
|
1817
|
+
func ptrFromHandle_whatsapp_Connect(h CGoHandle) *whatsapp.Connect {
|
|
1818
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Connect")
|
|
1819
|
+
if p == nil {
|
|
1820
|
+
return nil
|
|
1821
|
+
}
|
|
1822
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Connect{})).(*whatsapp.Connect)
|
|
1823
|
+
}
|
|
1824
|
+
func handleFromPtr_whatsapp_Connect(p interface{}) CGoHandle {
|
|
1825
|
+
return CGoHandle(gopyh.Register("whatsapp.Connect", p))
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
// Converters for non-pointer handles for type: whatsapp.Contact
|
|
1829
|
+
func ptrFromHandle_whatsapp_Contact(h CGoHandle) *whatsapp.Contact {
|
|
1830
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Contact")
|
|
1831
|
+
if p == nil {
|
|
1832
|
+
return nil
|
|
1833
|
+
}
|
|
1834
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Contact{})).(*whatsapp.Contact)
|
|
1835
|
+
}
|
|
1836
|
+
func handleFromPtr_whatsapp_Contact(p interface{}) CGoHandle {
|
|
1837
|
+
return CGoHandle(gopyh.Register("whatsapp.Contact", p))
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
// Converters for non-pointer handles for type: whatsapp.EventPayload
|
|
1841
|
+
func ptrFromHandle_whatsapp_EventPayload(h CGoHandle) *whatsapp.EventPayload {
|
|
1842
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.EventPayload")
|
|
1843
|
+
if p == nil {
|
|
1844
|
+
return nil
|
|
1845
|
+
}
|
|
1846
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.EventPayload{})).(*whatsapp.EventPayload)
|
|
1847
|
+
}
|
|
1848
|
+
func handleFromPtr_whatsapp_EventPayload(p interface{}) CGoHandle {
|
|
1849
|
+
return CGoHandle(gopyh.Register("whatsapp.EventPayload", p))
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
// Converters for non-pointer handles for type: whatsapp.Gateway
|
|
1853
|
+
func ptrFromHandle_whatsapp_Gateway(h CGoHandle) *whatsapp.Gateway {
|
|
1854
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Gateway")
|
|
1855
|
+
if p == nil {
|
|
1856
|
+
return nil
|
|
1857
|
+
}
|
|
1858
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway)
|
|
1859
|
+
}
|
|
1860
|
+
func handleFromPtr_whatsapp_Gateway(p interface{}) CGoHandle {
|
|
1861
|
+
return CGoHandle(gopyh.Register("whatsapp.Gateway", p))
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
// Converters for non-pointer handles for type: whatsapp.Group
|
|
1865
|
+
func ptrFromHandle_whatsapp_Group(h CGoHandle) *whatsapp.Group {
|
|
1866
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Group")
|
|
1867
|
+
if p == nil {
|
|
1868
|
+
return nil
|
|
1869
|
+
}
|
|
1870
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Group{})).(*whatsapp.Group)
|
|
1871
|
+
}
|
|
1872
|
+
func handleFromPtr_whatsapp_Group(p interface{}) CGoHandle {
|
|
1873
|
+
return CGoHandle(gopyh.Register("whatsapp.Group", p))
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
// Converters for non-pointer handles for type: whatsapp.GroupParticipant
|
|
1877
|
+
func ptrFromHandle_whatsapp_GroupParticipant(h CGoHandle) *whatsapp.GroupParticipant {
|
|
1878
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.GroupParticipant")
|
|
1879
|
+
if p == nil {
|
|
1880
|
+
return nil
|
|
1881
|
+
}
|
|
1882
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.GroupParticipant{})).(*whatsapp.GroupParticipant)
|
|
1883
|
+
}
|
|
1884
|
+
func handleFromPtr_whatsapp_GroupParticipant(p interface{}) CGoHandle {
|
|
1885
|
+
return CGoHandle(gopyh.Register("whatsapp.GroupParticipant", p))
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
// Converters for non-pointer handles for type: whatsapp.GroupSubject
|
|
1889
|
+
func ptrFromHandle_whatsapp_GroupSubject(h CGoHandle) *whatsapp.GroupSubject {
|
|
1890
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.GroupSubject")
|
|
1891
|
+
if p == nil {
|
|
1892
|
+
return nil
|
|
1893
|
+
}
|
|
1894
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.GroupSubject{})).(*whatsapp.GroupSubject)
|
|
1895
|
+
}
|
|
1896
|
+
func handleFromPtr_whatsapp_GroupSubject(p interface{}) CGoHandle {
|
|
1897
|
+
return CGoHandle(gopyh.Register("whatsapp.GroupSubject", p))
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
// Converters for non-pointer handles for type: whatsapp.LinkedDevice
|
|
1901
|
+
func ptrFromHandle_whatsapp_LinkedDevice(h CGoHandle) *whatsapp.LinkedDevice {
|
|
1902
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.LinkedDevice")
|
|
1903
|
+
if p == nil {
|
|
1904
|
+
return nil
|
|
1905
|
+
}
|
|
1906
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice)
|
|
1907
|
+
}
|
|
1908
|
+
func handleFromPtr_whatsapp_LinkedDevice(p interface{}) CGoHandle {
|
|
1909
|
+
return CGoHandle(gopyh.Register("whatsapp.LinkedDevice", p))
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
// Converters for non-pointer handles for type: whatsapp.Location
|
|
1913
|
+
func ptrFromHandle_whatsapp_Location(h CGoHandle) *whatsapp.Location {
|
|
1914
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Location")
|
|
1915
|
+
if p == nil {
|
|
1916
|
+
return nil
|
|
1917
|
+
}
|
|
1918
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Location{})).(*whatsapp.Location)
|
|
1919
|
+
}
|
|
1920
|
+
func handleFromPtr_whatsapp_Location(p interface{}) CGoHandle {
|
|
1921
|
+
return CGoHandle(gopyh.Register("whatsapp.Location", p))
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
// Converters for non-pointer handles for type: whatsapp.Message
|
|
1925
|
+
func ptrFromHandle_whatsapp_Message(h CGoHandle) *whatsapp.Message {
|
|
1926
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Message")
|
|
1927
|
+
if p == nil {
|
|
1928
|
+
return nil
|
|
1929
|
+
}
|
|
1930
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Message{})).(*whatsapp.Message)
|
|
1931
|
+
}
|
|
1932
|
+
func handleFromPtr_whatsapp_Message(p interface{}) CGoHandle {
|
|
1933
|
+
return CGoHandle(gopyh.Register("whatsapp.Message", p))
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
// Converters for non-pointer handles for type: whatsapp.Presence
|
|
1937
|
+
func ptrFromHandle_whatsapp_Presence(h CGoHandle) *whatsapp.Presence {
|
|
1938
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Presence")
|
|
1939
|
+
if p == nil {
|
|
1940
|
+
return nil
|
|
1941
|
+
}
|
|
1942
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Presence{})).(*whatsapp.Presence)
|
|
1943
|
+
}
|
|
1944
|
+
func handleFromPtr_whatsapp_Presence(p interface{}) CGoHandle {
|
|
1945
|
+
return CGoHandle(gopyh.Register("whatsapp.Presence", p))
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
// Converters for non-pointer handles for type: whatsapp.Preview
|
|
1949
|
+
func ptrFromHandle_whatsapp_Preview(h CGoHandle) *whatsapp.Preview {
|
|
1950
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Preview")
|
|
1951
|
+
if p == nil {
|
|
1952
|
+
return nil
|
|
1953
|
+
}
|
|
1954
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Preview{})).(*whatsapp.Preview)
|
|
1955
|
+
}
|
|
1956
|
+
func handleFromPtr_whatsapp_Preview(p interface{}) CGoHandle {
|
|
1957
|
+
return CGoHandle(gopyh.Register("whatsapp.Preview", p))
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
// Converters for non-pointer handles for type: whatsapp.Receipt
|
|
1961
|
+
func ptrFromHandle_whatsapp_Receipt(h CGoHandle) *whatsapp.Receipt {
|
|
1962
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Receipt")
|
|
1963
|
+
if p == nil {
|
|
1964
|
+
return nil
|
|
1965
|
+
}
|
|
1966
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Receipt{})).(*whatsapp.Receipt)
|
|
1967
|
+
}
|
|
1968
|
+
func handleFromPtr_whatsapp_Receipt(p interface{}) CGoHandle {
|
|
1969
|
+
return CGoHandle(gopyh.Register("whatsapp.Receipt", p))
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
// Converters for non-pointer handles for type: whatsapp.Session
|
|
1973
|
+
func ptrFromHandle_whatsapp_Session(h CGoHandle) *whatsapp.Session {
|
|
1974
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Session")
|
|
1975
|
+
if p == nil {
|
|
1976
|
+
return nil
|
|
1977
|
+
}
|
|
1978
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session)
|
|
1979
|
+
}
|
|
1980
|
+
func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
1981
|
+
return CGoHandle(gopyh.Register("whatsapp.Session", p))
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
// ---- Global Variables: can only use functions to access ---
|
|
1985
|
+
|
|
1986
|
+
// ---- Interfaces ---
|
|
1987
|
+
|
|
1988
|
+
// ---- Structs ---
|
|
1989
|
+
|
|
1990
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
1991
|
+
//
|
|
1992
|
+
//export whatsapp_Gateway_CTor
|
|
1993
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
1994
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
1998
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
1999
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2000
|
+
return C.CString(op.DBPath)
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
//export whatsapp_Gateway_DBPath_Set
|
|
2004
|
+
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
2005
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2006
|
+
op.DBPath = C.GoString(val)
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
//export whatsapp_Gateway_Name_Get
|
|
2010
|
+
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
2011
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2012
|
+
return C.CString(op.Name)
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
//export whatsapp_Gateway_Name_Set
|
|
2016
|
+
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
2017
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2018
|
+
op.Name = C.GoString(val)
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
//export whatsapp_Gateway_LogLevel_Get
|
|
2022
|
+
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
2023
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2024
|
+
return C.CString(op.LogLevel)
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
//export whatsapp_Gateway_LogLevel_Set
|
|
2028
|
+
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
2029
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2030
|
+
op.LogLevel = C.GoString(val)
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
//export whatsapp_Gateway_TempDir_Get
|
|
2034
|
+
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
2035
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2036
|
+
return C.CString(op.TempDir)
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
//export whatsapp_Gateway_TempDir_Set
|
|
2040
|
+
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
2041
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2042
|
+
op.TempDir = C.GoString(val)
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
//export whatsapp_Gateway_Init
|
|
2046
|
+
func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
2047
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2048
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2049
|
+
if __err != nil {
|
|
2050
|
+
return errorGoToPy(nil)
|
|
2051
|
+
}
|
|
2052
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2053
|
+
|
|
2054
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2055
|
+
if __err != nil {
|
|
2056
|
+
estr := C.CString(__err.Error())
|
|
2057
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2058
|
+
return estr
|
|
2059
|
+
}
|
|
2060
|
+
return C.CString("")
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
//export whatsapp_Gateway_NewSession
|
|
2064
|
+
func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle {
|
|
2065
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2066
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2067
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2068
|
+
if __err != nil {
|
|
2069
|
+
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2070
|
+
}
|
|
2071
|
+
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
2072
|
+
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
//export whatsapp_Gateway_CleanupSession
|
|
2076
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
2077
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2078
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2079
|
+
if __err != nil {
|
|
2080
|
+
return errorGoToPy(nil)
|
|
2081
|
+
}
|
|
2082
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
2083
|
+
|
|
2084
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2085
|
+
if __err != nil {
|
|
2086
|
+
estr := C.CString(__err.Error())
|
|
2087
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2088
|
+
return estr
|
|
2089
|
+
}
|
|
2090
|
+
return C.CString("")
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
2094
|
+
//
|
|
2095
|
+
//export whatsapp_Location_CTor
|
|
2096
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
2097
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
//export whatsapp_Location_Latitude_Get
|
|
2101
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2102
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2103
|
+
return C.double(op.Latitude)
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
//export whatsapp_Location_Latitude_Set
|
|
2107
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2108
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2109
|
+
op.Latitude = float64(val)
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
//export whatsapp_Location_Longitude_Get
|
|
2113
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2114
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2115
|
+
return C.double(op.Longitude)
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
//export whatsapp_Location_Longitude_Set
|
|
2119
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
2120
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2121
|
+
op.Longitude = float64(val)
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
//export whatsapp_Location_Accuracy_Get
|
|
2125
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
2126
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2127
|
+
return C.longlong(op.Accuracy)
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
//export whatsapp_Location_Accuracy_Set
|
|
2131
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
2132
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2133
|
+
op.Accuracy = int(val)
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
//export whatsapp_Location_IsLive_Get
|
|
2137
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
2138
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2139
|
+
return boolGoToPy(op.IsLive)
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
//export whatsapp_Location_IsLive_Set
|
|
2143
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
2144
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2145
|
+
op.IsLive = boolPyToGo(val)
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
//export whatsapp_Location_Name_Get
|
|
2149
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
2150
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2151
|
+
return C.CString(op.Name)
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
//export whatsapp_Location_Name_Set
|
|
2155
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
2156
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2157
|
+
op.Name = C.GoString(val)
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
//export whatsapp_Location_Address_Get
|
|
2161
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
2162
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2163
|
+
return C.CString(op.Address)
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2166
|
+
//export whatsapp_Location_Address_Set
|
|
2167
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
2168
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2169
|
+
op.Address = C.GoString(val)
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
//export whatsapp_Location_URL_Get
|
|
2173
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
2174
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2175
|
+
return C.CString(op.URL)
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
//export whatsapp_Location_URL_Set
|
|
2179
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
2180
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2181
|
+
op.URL = C.GoString(val)
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
2185
|
+
//
|
|
2186
|
+
//export whatsapp_Presence_CTor
|
|
2187
|
+
func whatsapp_Presence_CTor() CGoHandle {
|
|
2188
|
+
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
//export whatsapp_Presence_JID_Get
|
|
2192
|
+
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
2193
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2194
|
+
return C.CString(op.JID)
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
//export whatsapp_Presence_JID_Set
|
|
2198
|
+
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
2199
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2200
|
+
op.JID = C.GoString(val)
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
//export whatsapp_Presence_Kind_Get
|
|
2204
|
+
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
2205
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2206
|
+
return C.longlong(int(op.Kind))
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
//export whatsapp_Presence_Kind_Set
|
|
2210
|
+
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2211
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2212
|
+
op.Kind = whatsapp.PresenceKind(int(val))
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
//export whatsapp_Presence_LastSeen_Get
|
|
2216
|
+
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
2217
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2218
|
+
return C.longlong(op.LastSeen)
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
//export whatsapp_Presence_LastSeen_Set
|
|
2222
|
+
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
2223
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2224
|
+
op.LastSeen = int64(val)
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
2228
|
+
//
|
|
2229
|
+
//export whatsapp_Preview_CTor
|
|
2230
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
2231
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
//export whatsapp_Preview_Kind_Get
|
|
2235
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
2236
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2237
|
+
return C.longlong(int(op.Kind))
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
//export whatsapp_Preview_Kind_Set
|
|
2241
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2242
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2243
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
//export whatsapp_Preview_URL_Get
|
|
2247
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
2248
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2249
|
+
return C.CString(op.URL)
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
//export whatsapp_Preview_URL_Set
|
|
2253
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
2254
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2255
|
+
op.URL = C.GoString(val)
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
//export whatsapp_Preview_Title_Get
|
|
2259
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
2260
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2261
|
+
return C.CString(op.Title)
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
//export whatsapp_Preview_Title_Set
|
|
2265
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
2266
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2267
|
+
op.Title = C.GoString(val)
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
//export whatsapp_Preview_Description_Get
|
|
2271
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
2272
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2273
|
+
return C.CString(op.Description)
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
//export whatsapp_Preview_Description_Set
|
|
2277
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
2278
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2279
|
+
op.Description = C.GoString(val)
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
2283
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
2284
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2285
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
2289
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
2290
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2291
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
2295
|
+
//
|
|
2296
|
+
//export whatsapp_Avatar_CTor
|
|
2297
|
+
func whatsapp_Avatar_CTor() CGoHandle {
|
|
2298
|
+
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
//export whatsapp_Avatar_ID_Get
|
|
2302
|
+
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
2303
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2304
|
+
return C.CString(op.ID)
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
//export whatsapp_Avatar_ID_Set
|
|
2308
|
+
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
2309
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2310
|
+
op.ID = C.GoString(val)
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
//export whatsapp_Avatar_URL_Get
|
|
2314
|
+
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
2315
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2316
|
+
return C.CString(op.URL)
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
//export whatsapp_Avatar_URL_Set
|
|
2320
|
+
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
2321
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2322
|
+
op.URL = C.GoString(val)
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2326
|
+
//
|
|
2327
|
+
//export whatsapp_EventPayload_CTor
|
|
2328
|
+
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
2329
|
+
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
//export whatsapp_EventPayload_QRCode_Get
|
|
2333
|
+
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
2334
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2335
|
+
return C.CString(op.QRCode)
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
//export whatsapp_EventPayload_QRCode_Set
|
|
2339
|
+
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
2340
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2341
|
+
op.QRCode = C.GoString(val)
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
2345
|
+
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
2346
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2347
|
+
return C.CString(op.PairDeviceID)
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
2351
|
+
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
2352
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2353
|
+
op.PairDeviceID = C.GoString(val)
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
//export whatsapp_EventPayload_Connect_Get
|
|
2357
|
+
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
2358
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2359
|
+
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
//export whatsapp_EventPayload_Connect_Set
|
|
2363
|
+
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
2364
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2365
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
//export whatsapp_EventPayload_Contact_Get
|
|
2369
|
+
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
2370
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2371
|
+
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
//export whatsapp_EventPayload_Contact_Set
|
|
2375
|
+
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
2376
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2377
|
+
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
//export whatsapp_EventPayload_Presence_Get
|
|
2381
|
+
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
2382
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2383
|
+
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
//export whatsapp_EventPayload_Presence_Set
|
|
2387
|
+
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
2388
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2389
|
+
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
//export whatsapp_EventPayload_Message_Get
|
|
2393
|
+
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
2394
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2395
|
+
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
//export whatsapp_EventPayload_Message_Set
|
|
2399
|
+
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
2400
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2401
|
+
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
//export whatsapp_EventPayload_ChatState_Get
|
|
2405
|
+
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
2406
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2407
|
+
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
//export whatsapp_EventPayload_ChatState_Set
|
|
2411
|
+
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
2412
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2413
|
+
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
2414
|
+
}
|
|
2415
|
+
|
|
2416
|
+
//export whatsapp_EventPayload_Receipt_Get
|
|
2417
|
+
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
2418
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2419
|
+
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
//export whatsapp_EventPayload_Receipt_Set
|
|
2423
|
+
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
2424
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2425
|
+
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
//export whatsapp_EventPayload_Group_Get
|
|
2429
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2430
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2431
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
//export whatsapp_EventPayload_Group_Set
|
|
2435
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2436
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2437
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
//export whatsapp_EventPayload_Call_Get
|
|
2441
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2442
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2443
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
//export whatsapp_EventPayload_Call_Set
|
|
2447
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2448
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2449
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
2453
|
+
//
|
|
2454
|
+
//export whatsapp_LinkedDevice_CTor
|
|
2455
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
2456
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
2460
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
2461
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
2462
|
+
return C.CString(op.ID)
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
2466
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
2467
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
2468
|
+
op.ID = C.GoString(val)
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
//export whatsapp_LinkedDevice_JID
|
|
2472
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
2473
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2474
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2475
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
2476
|
+
if __err != nil {
|
|
2477
|
+
return handleFromPtr_types_JID(nil)
|
|
2478
|
+
}
|
|
2479
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
2480
|
+
|
|
2481
|
+
return handleFromPtr_types_JID(&cret)
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
// --- wrapping struct: whatsapp.Session ---
|
|
2485
|
+
//
|
|
2486
|
+
//export whatsapp_Session_CTor
|
|
2487
|
+
func whatsapp_Session_CTor() CGoHandle {
|
|
2488
|
+
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
//export whatsapp_Session_Login
|
|
2492
|
+
func whatsapp_Session_Login(_handle CGoHandle) *C.char {
|
|
2493
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2494
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2495
|
+
if __err != nil {
|
|
2496
|
+
return errorGoToPy(nil)
|
|
2497
|
+
}
|
|
2498
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
2499
|
+
|
|
2500
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2501
|
+
if __err != nil {
|
|
2502
|
+
estr := C.CString(__err.Error())
|
|
2503
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2504
|
+
return estr
|
|
2505
|
+
}
|
|
2506
|
+
return C.CString("")
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
//export whatsapp_Session_Logout
|
|
2510
|
+
func whatsapp_Session_Logout(_handle CGoHandle) *C.char {
|
|
2511
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2512
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2513
|
+
if __err != nil {
|
|
2514
|
+
return errorGoToPy(nil)
|
|
2515
|
+
}
|
|
2516
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
2517
|
+
|
|
2518
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2519
|
+
if __err != nil {
|
|
2520
|
+
estr := C.CString(__err.Error())
|
|
2521
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2522
|
+
return estr
|
|
2523
|
+
}
|
|
2524
|
+
return C.CString("")
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
//export whatsapp_Session_Disconnect
|
|
2528
|
+
func whatsapp_Session_Disconnect(_handle CGoHandle) *C.char {
|
|
2529
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2530
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2531
|
+
if __err != nil {
|
|
2532
|
+
return errorGoToPy(nil)
|
|
2533
|
+
}
|
|
2534
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
2535
|
+
|
|
2536
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2537
|
+
if __err != nil {
|
|
2538
|
+
estr := C.CString(__err.Error())
|
|
2539
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2540
|
+
return estr
|
|
2541
|
+
}
|
|
2542
|
+
return C.CString("")
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
//export whatsapp_Session_PairPhone
|
|
2546
|
+
func whatsapp_Session_PairPhone(_handle CGoHandle, phone *C.char) *C.char {
|
|
2547
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2548
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2549
|
+
if __err != nil {
|
|
2550
|
+
return C.CString("")
|
|
2551
|
+
}
|
|
2552
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
2553
|
+
|
|
2554
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2555
|
+
if __err != nil {
|
|
2556
|
+
estr := C.CString(__err.Error())
|
|
2557
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2558
|
+
C.free(unsafe.Pointer(estr))
|
|
2559
|
+
return C.CString("")
|
|
2560
|
+
}
|
|
2561
|
+
return C.CString(cret)
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
//export whatsapp_Session_SendMessage
|
|
2565
|
+
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
2566
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2567
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2568
|
+
if __err != nil {
|
|
2569
|
+
return errorGoToPy(nil)
|
|
2570
|
+
}
|
|
2571
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
2572
|
+
|
|
2573
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2574
|
+
if __err != nil {
|
|
2575
|
+
estr := C.CString(__err.Error())
|
|
2576
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2577
|
+
return estr
|
|
2578
|
+
}
|
|
2579
|
+
return C.CString("")
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
//export whatsapp_Session_GenerateMessageID
|
|
2583
|
+
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
2584
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2585
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2586
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2587
|
+
if __err != nil {
|
|
2588
|
+
return C.CString("")
|
|
2589
|
+
}
|
|
2590
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
2591
|
+
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
//export whatsapp_Session_SendChatState
|
|
2595
|
+
func whatsapp_Session_SendChatState(_handle CGoHandle, state CGoHandle) *C.char {
|
|
2596
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2597
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2598
|
+
if __err != nil {
|
|
2599
|
+
return errorGoToPy(nil)
|
|
2600
|
+
}
|
|
2601
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
2602
|
+
|
|
2603
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2604
|
+
if __err != nil {
|
|
2605
|
+
estr := C.CString(__err.Error())
|
|
2606
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2607
|
+
return estr
|
|
2608
|
+
}
|
|
2609
|
+
return C.CString("")
|
|
2610
|
+
}
|
|
2611
|
+
|
|
2612
|
+
//export whatsapp_Session_SendReceipt
|
|
2613
|
+
func whatsapp_Session_SendReceipt(_handle CGoHandle, receipt CGoHandle) *C.char {
|
|
2614
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2615
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2616
|
+
if __err != nil {
|
|
2617
|
+
return errorGoToPy(nil)
|
|
2618
|
+
}
|
|
2619
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
2620
|
+
|
|
2621
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2622
|
+
if __err != nil {
|
|
2623
|
+
estr := C.CString(__err.Error())
|
|
2624
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2625
|
+
return estr
|
|
2626
|
+
}
|
|
2627
|
+
return C.CString("")
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
//export whatsapp_Session_SendPresence
|
|
2631
|
+
func whatsapp_Session_SendPresence(_handle CGoHandle, presence C.longlong, statusMessage *C.char) *C.char {
|
|
2632
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2633
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2634
|
+
if __err != nil {
|
|
2635
|
+
return errorGoToPy(nil)
|
|
2636
|
+
}
|
|
2637
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
2638
|
+
|
|
2639
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2640
|
+
if __err != nil {
|
|
2641
|
+
estr := C.CString(__err.Error())
|
|
2642
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2643
|
+
return estr
|
|
2644
|
+
}
|
|
2645
|
+
return C.CString("")
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
//export whatsapp_Session_GetContacts
|
|
2649
|
+
func whatsapp_Session_GetContacts(_handle CGoHandle, refresh C.char) CGoHandle {
|
|
2650
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2651
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2652
|
+
if __err != nil {
|
|
2653
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2654
|
+
}
|
|
2655
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
2656
|
+
|
|
2657
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2658
|
+
if __err != nil {
|
|
2659
|
+
estr := C.CString(__err.Error())
|
|
2660
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2661
|
+
C.free(unsafe.Pointer(estr))
|
|
2662
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2663
|
+
}
|
|
2664
|
+
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2667
|
+
//export whatsapp_Session_GetGroups
|
|
2668
|
+
func whatsapp_Session_GetGroups(_handle CGoHandle) CGoHandle {
|
|
2669
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2670
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2671
|
+
if __err != nil {
|
|
2672
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2673
|
+
}
|
|
2674
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
2675
|
+
|
|
2676
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2677
|
+
if __err != nil {
|
|
2678
|
+
estr := C.CString(__err.Error())
|
|
2679
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2680
|
+
C.free(unsafe.Pointer(estr))
|
|
2681
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2682
|
+
}
|
|
2683
|
+
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
//export whatsapp_Session_CreateGroup
|
|
2687
|
+
func whatsapp_Session_CreateGroup(_handle CGoHandle, name *C.char, participants CGoHandle) CGoHandle {
|
|
2688
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2689
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2690
|
+
if __err != nil {
|
|
2691
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2692
|
+
}
|
|
2693
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
2694
|
+
|
|
2695
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2696
|
+
if __err != nil {
|
|
2697
|
+
estr := C.CString(__err.Error())
|
|
2698
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2699
|
+
C.free(unsafe.Pointer(estr))
|
|
2700
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2701
|
+
}
|
|
2702
|
+
return handleFromPtr_whatsapp_Group(&cret)
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
//export whatsapp_Session_LeaveGroup
|
|
2706
|
+
func whatsapp_Session_LeaveGroup(_handle CGoHandle, resourceID *C.char) *C.char {
|
|
2707
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2708
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2709
|
+
if __err != nil {
|
|
2710
|
+
return errorGoToPy(nil)
|
|
2711
|
+
}
|
|
2712
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
2713
|
+
|
|
2714
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2715
|
+
if __err != nil {
|
|
2716
|
+
estr := C.CString(__err.Error())
|
|
2717
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2718
|
+
return estr
|
|
2719
|
+
}
|
|
2720
|
+
return C.CString("")
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
//export whatsapp_Session_GetAvatar
|
|
2724
|
+
func whatsapp_Session_GetAvatar(_handle CGoHandle, resourceID *C.char, avatarID *C.char) CGoHandle {
|
|
2725
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2726
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2727
|
+
if __err != nil {
|
|
2728
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2729
|
+
}
|
|
2730
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
2731
|
+
|
|
2732
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2733
|
+
if __err != nil {
|
|
2734
|
+
estr := C.CString(__err.Error())
|
|
2735
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2736
|
+
C.free(unsafe.Pointer(estr))
|
|
2737
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2738
|
+
}
|
|
2739
|
+
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2742
|
+
//export whatsapp_Session_SetAvatar
|
|
2743
|
+
func whatsapp_Session_SetAvatar(_handle CGoHandle, resourceID *C.char, avatar CGoHandle) *C.char {
|
|
2744
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2745
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2746
|
+
if __err != nil {
|
|
2747
|
+
return C.CString("")
|
|
2748
|
+
}
|
|
2749
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
2750
|
+
|
|
2751
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2752
|
+
if __err != nil {
|
|
2753
|
+
estr := C.CString(__err.Error())
|
|
2754
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2755
|
+
C.free(unsafe.Pointer(estr))
|
|
2756
|
+
return C.CString("")
|
|
2757
|
+
}
|
|
2758
|
+
return C.CString(cret)
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
//export whatsapp_Session_SetGroupName
|
|
2762
|
+
func whatsapp_Session_SetGroupName(_handle CGoHandle, resourceID *C.char, name *C.char) *C.char {
|
|
2763
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2764
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2765
|
+
if __err != nil {
|
|
2766
|
+
return errorGoToPy(nil)
|
|
2767
|
+
}
|
|
2768
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
2769
|
+
|
|
2770
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2771
|
+
if __err != nil {
|
|
2772
|
+
estr := C.CString(__err.Error())
|
|
2773
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2774
|
+
return estr
|
|
2775
|
+
}
|
|
2776
|
+
return C.CString("")
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2779
|
+
//export whatsapp_Session_SetGroupTopic
|
|
2780
|
+
func whatsapp_Session_SetGroupTopic(_handle CGoHandle, resourceID *C.char, topic *C.char) *C.char {
|
|
2781
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2782
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2783
|
+
if __err != nil {
|
|
2784
|
+
return errorGoToPy(nil)
|
|
2785
|
+
}
|
|
2786
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
2787
|
+
|
|
2788
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2789
|
+
if __err != nil {
|
|
2790
|
+
estr := C.CString(__err.Error())
|
|
2791
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2792
|
+
return estr
|
|
2793
|
+
}
|
|
2794
|
+
return C.CString("")
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
//export whatsapp_Session_UpdateGroupParticipants
|
|
2798
|
+
func whatsapp_Session_UpdateGroupParticipants(_handle CGoHandle, resourceID *C.char, participants CGoHandle) CGoHandle {
|
|
2799
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2800
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2801
|
+
if __err != nil {
|
|
2802
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2803
|
+
}
|
|
2804
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
2805
|
+
|
|
2806
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2807
|
+
if __err != nil {
|
|
2808
|
+
estr := C.CString(__err.Error())
|
|
2809
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2810
|
+
C.free(unsafe.Pointer(estr))
|
|
2811
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2812
|
+
}
|
|
2813
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
//export whatsapp_Session_FindContact
|
|
2817
|
+
func whatsapp_Session_FindContact(_handle CGoHandle, phone *C.char) CGoHandle {
|
|
2818
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2819
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2820
|
+
if __err != nil {
|
|
2821
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2822
|
+
}
|
|
2823
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
2824
|
+
|
|
2825
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2826
|
+
if __err != nil {
|
|
2827
|
+
estr := C.CString(__err.Error())
|
|
2828
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2829
|
+
C.free(unsafe.Pointer(estr))
|
|
2830
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2831
|
+
}
|
|
2832
|
+
return handleFromPtr_whatsapp_Contact(&cret)
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
//export whatsapp_Session_RequestMessageHistory
|
|
2836
|
+
func whatsapp_Session_RequestMessageHistory(_handle CGoHandle, resourceID *C.char, oldestMessage CGoHandle) *C.char {
|
|
2837
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2838
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2839
|
+
if __err != nil {
|
|
2840
|
+
return errorGoToPy(nil)
|
|
2841
|
+
}
|
|
2842
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
2843
|
+
|
|
2844
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2845
|
+
if __err != nil {
|
|
2846
|
+
estr := C.CString(__err.Error())
|
|
2847
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2848
|
+
return estr
|
|
2849
|
+
}
|
|
2850
|
+
return C.CString("")
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
//export whatsapp_Session_SetEventHandler
|
|
2854
|
+
func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.char) {
|
|
2855
|
+
_fun_arg := h
|
|
2856
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2857
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2858
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2859
|
+
if __err != nil {
|
|
2860
|
+
return
|
|
2861
|
+
}
|
|
2862
|
+
if boolPyToGo(goRun) {
|
|
2863
|
+
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2864
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2865
|
+
return
|
|
2866
|
+
}
|
|
2867
|
+
_gstate := C.PyGILState_Ensure()
|
|
2868
|
+
_fcargs := C.PyTuple_New(2)
|
|
2869
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2870
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2871
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2872
|
+
C.gopy_decref(_fcargs)
|
|
2873
|
+
C.gopy_err_handle()
|
|
2874
|
+
C.PyGILState_Release(_gstate)
|
|
2875
|
+
})
|
|
2876
|
+
} else {
|
|
2877
|
+
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2878
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2879
|
+
return
|
|
2880
|
+
}
|
|
2881
|
+
_gstate := C.PyGILState_Ensure()
|
|
2882
|
+
_fcargs := C.PyTuple_New(2)
|
|
2883
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2884
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2885
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2886
|
+
C.gopy_decref(_fcargs)
|
|
2887
|
+
C.gopy_err_handle()
|
|
2888
|
+
C.PyGILState_Release(_gstate)
|
|
2889
|
+
})
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
2894
|
+
//
|
|
2895
|
+
//export whatsapp_ChatState_CTor
|
|
2896
|
+
func whatsapp_ChatState_CTor() CGoHandle {
|
|
2897
|
+
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
//export whatsapp_ChatState_Kind_Get
|
|
2901
|
+
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
2902
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2903
|
+
return C.longlong(int(op.Kind))
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
//export whatsapp_ChatState_Kind_Set
|
|
2907
|
+
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2908
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2909
|
+
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
//export whatsapp_ChatState_JID_Get
|
|
2913
|
+
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
2914
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2915
|
+
return C.CString(op.JID)
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
//export whatsapp_ChatState_JID_Set
|
|
2919
|
+
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
2920
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2921
|
+
op.JID = C.GoString(val)
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
//export whatsapp_ChatState_GroupJID_Get
|
|
2925
|
+
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2926
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2927
|
+
return C.CString(op.GroupJID)
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
//export whatsapp_ChatState_GroupJID_Set
|
|
2931
|
+
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2932
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2933
|
+
op.GroupJID = C.GoString(val)
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
2937
|
+
//
|
|
2938
|
+
//export whatsapp_Contact_CTor
|
|
2939
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
2940
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
//export whatsapp_Contact_JID_Get
|
|
2944
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
2945
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2946
|
+
return C.CString(op.JID)
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
//export whatsapp_Contact_JID_Set
|
|
2950
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
2951
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2952
|
+
op.JID = C.GoString(val)
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
//export whatsapp_Contact_Name_Get
|
|
2956
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
2957
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2958
|
+
return C.CString(op.Name)
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
//export whatsapp_Contact_Name_Set
|
|
2962
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
2963
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2964
|
+
op.Name = C.GoString(val)
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
2968
|
+
//
|
|
2969
|
+
//export whatsapp_Group_CTor
|
|
2970
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
2971
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2974
|
+
//export whatsapp_Group_JID_Get
|
|
2975
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
2976
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2977
|
+
return C.CString(op.JID)
|
|
2978
|
+
}
|
|
2979
|
+
|
|
2980
|
+
//export whatsapp_Group_JID_Set
|
|
2981
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
2982
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2983
|
+
op.JID = C.GoString(val)
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
//export whatsapp_Group_Name_Get
|
|
2987
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
2988
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2989
|
+
return C.CString(op.Name)
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
//export whatsapp_Group_Name_Set
|
|
2993
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
2994
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2995
|
+
op.Name = C.GoString(val)
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
//export whatsapp_Group_Subject_Get
|
|
2999
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
3000
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3001
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
//export whatsapp_Group_Subject_Set
|
|
3005
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
3006
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3007
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
3008
|
+
}
|
|
3009
|
+
|
|
3010
|
+
//export whatsapp_Group_Nickname_Get
|
|
3011
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
3012
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3013
|
+
return C.CString(op.Nickname)
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
//export whatsapp_Group_Nickname_Set
|
|
3017
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3018
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3019
|
+
op.Nickname = C.GoString(val)
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
//export whatsapp_Group_Participants_Get
|
|
3023
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
3024
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3025
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
//export whatsapp_Group_Participants_Set
|
|
3029
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
3030
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3031
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
3035
|
+
//
|
|
3036
|
+
//export whatsapp_GroupSubject_CTor
|
|
3037
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
3038
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
3042
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
3043
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3044
|
+
return C.CString(op.Subject)
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
3048
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
3049
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3050
|
+
op.Subject = C.GoString(val)
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
3054
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
3055
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3056
|
+
return C.longlong(op.SetAt)
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
3060
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
3061
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3062
|
+
op.SetAt = int64(val)
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
//export whatsapp_GroupSubject_SetByJID_Get
|
|
3066
|
+
func whatsapp_GroupSubject_SetByJID_Get(handle CGoHandle) *C.char {
|
|
3067
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3068
|
+
return C.CString(op.SetByJID)
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
//export whatsapp_GroupSubject_SetByJID_Set
|
|
3072
|
+
func whatsapp_GroupSubject_SetByJID_Set(handle CGoHandle, val *C.char) {
|
|
3073
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3074
|
+
op.SetByJID = C.GoString(val)
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
3078
|
+
//
|
|
3079
|
+
//export whatsapp_Receipt_CTor
|
|
3080
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3081
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
//export whatsapp_Receipt_Kind_Get
|
|
3085
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3086
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3087
|
+
return C.longlong(int(op.Kind))
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
//export whatsapp_Receipt_Kind_Set
|
|
3091
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3092
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3093
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3094
|
+
}
|
|
3095
|
+
|
|
3096
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
3097
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3098
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3099
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
3103
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3104
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3105
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
//export whatsapp_Receipt_JID_Get
|
|
3109
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3110
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3111
|
+
return C.CString(op.JID)
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
//export whatsapp_Receipt_JID_Set
|
|
3115
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3116
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3117
|
+
op.JID = C.GoString(val)
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
3121
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3122
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3123
|
+
return C.CString(op.GroupJID)
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
3127
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3128
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3129
|
+
op.GroupJID = C.GoString(val)
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
3133
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3134
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3135
|
+
return C.longlong(op.Timestamp)
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
3139
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3140
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3141
|
+
op.Timestamp = int64(val)
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
3145
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3146
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3147
|
+
return boolGoToPy(op.IsCarbon)
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3151
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3152
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3153
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3156
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
3157
|
+
//
|
|
3158
|
+
//export whatsapp_Attachment_CTor
|
|
3159
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
3160
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
3161
|
+
}
|
|
3162
|
+
|
|
3163
|
+
//export whatsapp_Attachment_MIME_Get
|
|
3164
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
3165
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3166
|
+
return C.CString(op.MIME)
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3169
|
+
//export whatsapp_Attachment_MIME_Set
|
|
3170
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
3171
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3172
|
+
op.MIME = C.GoString(val)
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
//export whatsapp_Attachment_Filename_Get
|
|
3176
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
3177
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3178
|
+
return C.CString(op.Filename)
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
//export whatsapp_Attachment_Filename_Set
|
|
3182
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
3183
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3184
|
+
op.Filename = C.GoString(val)
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
//export whatsapp_Attachment_Caption_Get
|
|
3188
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
3189
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3190
|
+
return C.CString(op.Caption)
|
|
3191
|
+
}
|
|
3192
|
+
|
|
3193
|
+
//export whatsapp_Attachment_Caption_Set
|
|
3194
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
3195
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3196
|
+
op.Caption = C.GoString(val)
|
|
3197
|
+
}
|
|
3198
|
+
|
|
3199
|
+
//export whatsapp_Attachment_Data_Get
|
|
3200
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
3201
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3202
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
//export whatsapp_Attachment_Data_Set
|
|
3206
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
3207
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3208
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
//export whatsapp_Attachment_GetSpec
|
|
3212
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
3213
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3214
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
3215
|
+
if __err != nil {
|
|
3216
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3217
|
+
}
|
|
3218
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3219
|
+
|
|
3220
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3221
|
+
if __err != nil {
|
|
3222
|
+
estr := C.CString(__err.Error())
|
|
3223
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3224
|
+
C.free(unsafe.Pointer(estr))
|
|
3225
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3226
|
+
}
|
|
3227
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
3231
|
+
//
|
|
3232
|
+
//export whatsapp_Call_CTor
|
|
3233
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
3234
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
//export whatsapp_Call_State_Get
|
|
3238
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
3239
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3240
|
+
return C.longlong(int(op.State))
|
|
3241
|
+
}
|
|
3242
|
+
|
|
3243
|
+
//export whatsapp_Call_State_Set
|
|
3244
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
3245
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3246
|
+
op.State = whatsapp.CallState(int(val))
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
//export whatsapp_Call_JID_Get
|
|
3250
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
3251
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3252
|
+
return C.CString(op.JID)
|
|
3253
|
+
}
|
|
3254
|
+
|
|
3255
|
+
//export whatsapp_Call_JID_Set
|
|
3256
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
3257
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3258
|
+
op.JID = C.GoString(val)
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
//export whatsapp_Call_Timestamp_Get
|
|
3262
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3263
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3264
|
+
return C.longlong(op.Timestamp)
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
//export whatsapp_Call_Timestamp_Set
|
|
3268
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3269
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3270
|
+
op.Timestamp = int64(val)
|
|
3271
|
+
}
|
|
3272
|
+
|
|
3273
|
+
// --- wrapping struct: whatsapp.Connect ---
|
|
3274
|
+
//
|
|
3275
|
+
//export whatsapp_Connect_CTor
|
|
3276
|
+
func whatsapp_Connect_CTor() CGoHandle {
|
|
3277
|
+
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
//export whatsapp_Connect_JID_Get
|
|
3281
|
+
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
3282
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3283
|
+
return C.CString(op.JID)
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
//export whatsapp_Connect_JID_Set
|
|
3287
|
+
func whatsapp_Connect_JID_Set(handle CGoHandle, val *C.char) {
|
|
3288
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3289
|
+
op.JID = C.GoString(val)
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
//export whatsapp_Connect_Error_Get
|
|
3293
|
+
func whatsapp_Connect_Error_Get(handle CGoHandle) *C.char {
|
|
3294
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3295
|
+
return C.CString(op.Error)
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3298
|
+
//export whatsapp_Connect_Error_Set
|
|
3299
|
+
func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
3300
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3301
|
+
op.Error = C.GoString(val)
|
|
3302
|
+
}
|
|
3303
|
+
|
|
3304
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
3305
|
+
//
|
|
3306
|
+
//export whatsapp_GroupParticipant_CTor
|
|
3307
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
3308
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
3312
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
3313
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3314
|
+
return C.CString(op.JID)
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
3318
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
3319
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3320
|
+
op.JID = C.GoString(val)
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
3324
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
3325
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3326
|
+
return C.longlong(int(op.Affiliation))
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
3330
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
3331
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3332
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3335
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
3336
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
3337
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3338
|
+
return C.longlong(int(op.Action))
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
3342
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
3343
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3344
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
3348
|
+
//
|
|
3349
|
+
//export whatsapp_Message_CTor
|
|
3350
|
+
func whatsapp_Message_CTor() CGoHandle {
|
|
3351
|
+
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
3352
|
+
}
|
|
3353
|
+
|
|
3354
|
+
//export whatsapp_Message_Kind_Get
|
|
3355
|
+
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
3356
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3357
|
+
return C.longlong(int(op.Kind))
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3360
|
+
//export whatsapp_Message_Kind_Set
|
|
3361
|
+
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3362
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3363
|
+
op.Kind = whatsapp.MessageKind(int(val))
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
//export whatsapp_Message_ID_Get
|
|
3367
|
+
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
3368
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3369
|
+
return C.CString(op.ID)
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
//export whatsapp_Message_ID_Set
|
|
3373
|
+
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
3374
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3375
|
+
op.ID = C.GoString(val)
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
//export whatsapp_Message_JID_Get
|
|
3379
|
+
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
3380
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3381
|
+
return C.CString(op.JID)
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3384
|
+
//export whatsapp_Message_JID_Set
|
|
3385
|
+
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
3386
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3387
|
+
op.JID = C.GoString(val)
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3390
|
+
//export whatsapp_Message_GroupJID_Get
|
|
3391
|
+
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3392
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3393
|
+
return C.CString(op.GroupJID)
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3396
|
+
//export whatsapp_Message_GroupJID_Set
|
|
3397
|
+
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3398
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3399
|
+
op.GroupJID = C.GoString(val)
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3402
|
+
//export whatsapp_Message_OriginJID_Get
|
|
3403
|
+
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
3404
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3405
|
+
return C.CString(op.OriginJID)
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
//export whatsapp_Message_OriginJID_Set
|
|
3409
|
+
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
3410
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3411
|
+
op.OriginJID = C.GoString(val)
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3414
|
+
//export whatsapp_Message_Body_Get
|
|
3415
|
+
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
3416
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3417
|
+
return C.CString(op.Body)
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
//export whatsapp_Message_Body_Set
|
|
3421
|
+
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
3422
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3423
|
+
op.Body = C.GoString(val)
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
//export whatsapp_Message_Timestamp_Get
|
|
3427
|
+
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3428
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3429
|
+
return C.longlong(op.Timestamp)
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3432
|
+
//export whatsapp_Message_Timestamp_Set
|
|
3433
|
+
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3434
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3435
|
+
op.Timestamp = int64(val)
|
|
3436
|
+
}
|
|
3437
|
+
|
|
3438
|
+
//export whatsapp_Message_IsCarbon_Get
|
|
3439
|
+
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3440
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3441
|
+
return boolGoToPy(op.IsCarbon)
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
//export whatsapp_Message_IsCarbon_Set
|
|
3445
|
+
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3446
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3447
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3450
|
+
//export whatsapp_Message_IsForwarded_Get
|
|
3451
|
+
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
3452
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3453
|
+
return boolGoToPy(op.IsForwarded)
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3456
|
+
//export whatsapp_Message_IsForwarded_Set
|
|
3457
|
+
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
3458
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3459
|
+
op.IsForwarded = boolPyToGo(val)
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3462
|
+
//export whatsapp_Message_ReplyID_Get
|
|
3463
|
+
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
3464
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3465
|
+
return C.CString(op.ReplyID)
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
//export whatsapp_Message_ReplyID_Set
|
|
3469
|
+
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
3470
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3471
|
+
op.ReplyID = C.GoString(val)
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
//export whatsapp_Message_ReplyBody_Get
|
|
3475
|
+
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
3476
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3477
|
+
return C.CString(op.ReplyBody)
|
|
3478
|
+
}
|
|
3479
|
+
|
|
3480
|
+
//export whatsapp_Message_ReplyBody_Set
|
|
3481
|
+
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
3482
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3483
|
+
op.ReplyBody = C.GoString(val)
|
|
3484
|
+
}
|
|
3485
|
+
|
|
3486
|
+
//export whatsapp_Message_Attachments_Get
|
|
3487
|
+
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
3488
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3489
|
+
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
//export whatsapp_Message_Attachments_Set
|
|
3493
|
+
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
3494
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3495
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
3496
|
+
}
|
|
3497
|
+
|
|
3498
|
+
//export whatsapp_Message_Preview_Get
|
|
3499
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
3500
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3501
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
//export whatsapp_Message_Preview_Set
|
|
3505
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
3506
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3507
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
3508
|
+
}
|
|
3509
|
+
|
|
3510
|
+
//export whatsapp_Message_Location_Get
|
|
3511
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
3512
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3513
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
//export whatsapp_Message_Location_Set
|
|
3517
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
3518
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3519
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
3520
|
+
}
|
|
3521
|
+
|
|
3522
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
3523
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3524
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3525
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
3529
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3530
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3531
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
//export whatsapp_Message_Receipts_Get
|
|
3535
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
3536
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3537
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
3538
|
+
}
|
|
3539
|
+
|
|
3540
|
+
//export whatsapp_Message_Receipts_Set
|
|
3541
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
3542
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3543
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
//export whatsapp_Message_Reactions_Get
|
|
3547
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
3548
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3549
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
//export whatsapp_Message_Reactions_Set
|
|
3553
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3554
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3555
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3558
|
+
// ---- Slices ---
|
|
3559
|
+
|
|
3560
|
+
// ---- Maps ---
|
|
3561
|
+
|
|
3562
|
+
// ---- Constructors ---
|
|
3563
|
+
|
|
3564
|
+
//export whatsapp_NewGateway
|
|
3565
|
+
func whatsapp_NewGateway() CGoHandle {
|
|
3566
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3567
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3568
|
+
return handleFromPtr_Ptr_whatsapp_Gateway(whatsapp.NewGateway())
|
|
3569
|
+
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
// ---- Functions ---
|