slidge-whatsapp 0.2.2__cp313-cp313-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.
- 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-313-x86_64-linux-gnu.h +606 -0
- slidge_whatsapp/generated/_whatsapp.cpython-313-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,606 @@
|
|
|
1
|
+
/* Code generated by cmd/cgo; DO NOT EDIT. */
|
|
2
|
+
|
|
3
|
+
/* package codeberg.org/slidge/slidge-whatsapp/slidge_whatsapp/generated */
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
#line 1 "cgo-builtin-export-prolog"
|
|
7
|
+
|
|
8
|
+
#include <stddef.h>
|
|
9
|
+
|
|
10
|
+
#ifndef GO_CGO_EXPORT_PROLOGUE_H
|
|
11
|
+
#define GO_CGO_EXPORT_PROLOGUE_H
|
|
12
|
+
|
|
13
|
+
#ifndef GO_CGO_GOSTRING_TYPEDEF
|
|
14
|
+
typedef struct { const char *p; ptrdiff_t n; } _GoString_;
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
#endif
|
|
18
|
+
|
|
19
|
+
/* Start of preamble from import "C" comments. */
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#line 9 "whatsapp.go"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
// #define Py_LIMITED_API // need full API for PyRun*
|
|
29
|
+
#include <Python.h>
|
|
30
|
+
typedef uint8_t bool;
|
|
31
|
+
// static inline is trick for avoiding need for extra .c file
|
|
32
|
+
// the following are used for build value -- switch on reflect.Kind
|
|
33
|
+
// or the types equivalent
|
|
34
|
+
static inline PyObject* gopy_build_bool(uint8_t val) {
|
|
35
|
+
return Py_BuildValue("b", val);
|
|
36
|
+
}
|
|
37
|
+
static inline PyObject* gopy_build_int64(int64_t val) {
|
|
38
|
+
return Py_BuildValue("k", val);
|
|
39
|
+
}
|
|
40
|
+
static inline PyObject* gopy_build_uint64(uint64_t val) {
|
|
41
|
+
return Py_BuildValue("K", val);
|
|
42
|
+
}
|
|
43
|
+
static inline PyObject* gopy_build_float64(double val) {
|
|
44
|
+
return Py_BuildValue("d", val);
|
|
45
|
+
}
|
|
46
|
+
static inline PyObject* gopy_build_string(const char* val) {
|
|
47
|
+
return Py_BuildValue("s", val);
|
|
48
|
+
}
|
|
49
|
+
static inline void gopy_decref(PyObject* obj) { // macro
|
|
50
|
+
Py_XDECREF(obj);
|
|
51
|
+
}
|
|
52
|
+
static inline void gopy_incref(PyObject* obj) { // macro
|
|
53
|
+
Py_XINCREF(obj);
|
|
54
|
+
}
|
|
55
|
+
static inline int gopy_method_check(PyObject* obj) { // macro
|
|
56
|
+
return PyMethod_Check(obj);
|
|
57
|
+
}
|
|
58
|
+
static inline void gopy_err_handle() {
|
|
59
|
+
if(PyErr_Occurred() != NULL) {
|
|
60
|
+
PyErr_Print();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
#line 1 "cgo-generated-wrapper"
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
/* End of preamble from import "C" comments. */
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/* Start of boilerplate cgo prologue. */
|
|
72
|
+
#line 1 "cgo-gcc-export-header-prolog"
|
|
73
|
+
|
|
74
|
+
#ifndef GO_CGO_PROLOGUE_H
|
|
75
|
+
#define GO_CGO_PROLOGUE_H
|
|
76
|
+
|
|
77
|
+
typedef signed char GoInt8;
|
|
78
|
+
typedef unsigned char GoUint8;
|
|
79
|
+
typedef short GoInt16;
|
|
80
|
+
typedef unsigned short GoUint16;
|
|
81
|
+
typedef int GoInt32;
|
|
82
|
+
typedef unsigned int GoUint32;
|
|
83
|
+
typedef long long GoInt64;
|
|
84
|
+
typedef unsigned long long GoUint64;
|
|
85
|
+
typedef GoInt64 GoInt;
|
|
86
|
+
typedef GoUint64 GoUint;
|
|
87
|
+
typedef size_t GoUintptr;
|
|
88
|
+
typedef float GoFloat32;
|
|
89
|
+
typedef double GoFloat64;
|
|
90
|
+
#ifdef _MSC_VER
|
|
91
|
+
#include <complex.h>
|
|
92
|
+
typedef _Fcomplex GoComplex64;
|
|
93
|
+
typedef _Dcomplex GoComplex128;
|
|
94
|
+
#else
|
|
95
|
+
typedef float _Complex GoComplex64;
|
|
96
|
+
typedef double _Complex GoComplex128;
|
|
97
|
+
#endif
|
|
98
|
+
|
|
99
|
+
/*
|
|
100
|
+
static assertion to make sure the file is being used on architecture
|
|
101
|
+
at least with matching size of GoInt.
|
|
102
|
+
*/
|
|
103
|
+
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
|
|
104
|
+
|
|
105
|
+
#ifndef GO_CGO_GOSTRING_TYPEDEF
|
|
106
|
+
typedef _GoString_ GoString;
|
|
107
|
+
#endif
|
|
108
|
+
typedef void *GoMap;
|
|
109
|
+
typedef void *GoChan;
|
|
110
|
+
typedef struct { void *t; void *v; } GoInterface;
|
|
111
|
+
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
|
|
112
|
+
|
|
113
|
+
#endif
|
|
114
|
+
|
|
115
|
+
/* End of boilerplate cgo prologue. */
|
|
116
|
+
|
|
117
|
+
#ifdef __cplusplus
|
|
118
|
+
extern "C" {
|
|
119
|
+
#endif
|
|
120
|
+
|
|
121
|
+
extern void GoPyInit();
|
|
122
|
+
|
|
123
|
+
// DecRef decrements the reference count for the specified handle
|
|
124
|
+
// and deletes it it goes to zero.
|
|
125
|
+
//
|
|
126
|
+
extern void DecRef(long long int handle);
|
|
127
|
+
|
|
128
|
+
// IncRef increments the reference count for the specified handle.
|
|
129
|
+
//
|
|
130
|
+
extern void IncRef(long long int handle);
|
|
131
|
+
|
|
132
|
+
// NumHandles returns the number of handles currently in use.
|
|
133
|
+
//
|
|
134
|
+
extern GoInt NumHandles();
|
|
135
|
+
|
|
136
|
+
// --- wrapping slice: []bool ---
|
|
137
|
+
//
|
|
138
|
+
extern long long int Slice_bool_CTor();
|
|
139
|
+
extern GoInt Slice_bool_len(long long int handle);
|
|
140
|
+
extern char Slice_bool_elem(long long int handle, GoInt _idx);
|
|
141
|
+
extern long long int Slice_bool_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
142
|
+
extern void Slice_bool_set(long long int handle, GoInt _idx, char _vl);
|
|
143
|
+
extern void Slice_bool_append(long long int handle, char _vl);
|
|
144
|
+
|
|
145
|
+
// --- wrapping slice: []byte ---
|
|
146
|
+
//
|
|
147
|
+
extern long long int Slice_byte_CTor();
|
|
148
|
+
extern GoInt Slice_byte_len(long long int handle);
|
|
149
|
+
extern char Slice_byte_elem(long long int handle, GoInt _idx);
|
|
150
|
+
extern long long int Slice_byte_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
151
|
+
extern void Slice_byte_set(long long int handle, GoInt _idx, char _vl);
|
|
152
|
+
extern void Slice_byte_append(long long int handle, char _vl);
|
|
153
|
+
extern long long int Slice_byte_from_bytes(PyObject* o);
|
|
154
|
+
extern PyObject* Slice_byte_to_bytes(long long int handle);
|
|
155
|
+
|
|
156
|
+
// --- wrapping slice: []error ---
|
|
157
|
+
//
|
|
158
|
+
extern long long int Slice_error_CTor();
|
|
159
|
+
extern GoInt Slice_error_len(long long int handle);
|
|
160
|
+
extern char* Slice_error_elem(long long int handle, GoInt _idx);
|
|
161
|
+
extern long long int Slice_error_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
162
|
+
extern void Slice_error_set(long long int handle, GoInt _idx, char* _vl);
|
|
163
|
+
extern void Slice_error_append(long long int handle, char* _vl);
|
|
164
|
+
|
|
165
|
+
// --- wrapping slice: []float32 ---
|
|
166
|
+
//
|
|
167
|
+
extern long long int Slice_float32_CTor();
|
|
168
|
+
extern GoInt Slice_float32_len(long long int handle);
|
|
169
|
+
extern float Slice_float32_elem(long long int handle, GoInt _idx);
|
|
170
|
+
extern long long int Slice_float32_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
171
|
+
extern void Slice_float32_set(long long int handle, GoInt _idx, float _vl);
|
|
172
|
+
extern void Slice_float32_append(long long int handle, float _vl);
|
|
173
|
+
|
|
174
|
+
// --- wrapping slice: []float64 ---
|
|
175
|
+
//
|
|
176
|
+
extern long long int Slice_float64_CTor();
|
|
177
|
+
extern GoInt Slice_float64_len(long long int handle);
|
|
178
|
+
extern double Slice_float64_elem(long long int handle, GoInt _idx);
|
|
179
|
+
extern long long int Slice_float64_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
180
|
+
extern void Slice_float64_set(long long int handle, GoInt _idx, double _vl);
|
|
181
|
+
extern void Slice_float64_append(long long int handle, double _vl);
|
|
182
|
+
|
|
183
|
+
// --- wrapping slice: []int ---
|
|
184
|
+
//
|
|
185
|
+
extern long long int Slice_int_CTor();
|
|
186
|
+
extern GoInt Slice_int_len(long long int handle);
|
|
187
|
+
extern long long int Slice_int_elem(long long int handle, GoInt _idx);
|
|
188
|
+
extern long long int Slice_int_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
189
|
+
extern void Slice_int_set(long long int handle, GoInt _idx, long long int _vl);
|
|
190
|
+
extern void Slice_int_append(long long int handle, long long int _vl);
|
|
191
|
+
|
|
192
|
+
// --- wrapping slice: []int16 ---
|
|
193
|
+
//
|
|
194
|
+
extern long long int Slice_int16_CTor();
|
|
195
|
+
extern GoInt Slice_int16_len(long long int handle);
|
|
196
|
+
extern short int Slice_int16_elem(long long int handle, GoInt _idx);
|
|
197
|
+
extern long long int Slice_int16_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
198
|
+
extern void Slice_int16_set(long long int handle, GoInt _idx, short int _vl);
|
|
199
|
+
extern void Slice_int16_append(long long int handle, short int _vl);
|
|
200
|
+
|
|
201
|
+
// --- wrapping slice: []int32 ---
|
|
202
|
+
//
|
|
203
|
+
extern long long int Slice_int32_CTor();
|
|
204
|
+
extern GoInt Slice_int32_len(long long int handle);
|
|
205
|
+
extern long int Slice_int32_elem(long long int handle, GoInt _idx);
|
|
206
|
+
extern long long int Slice_int32_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
207
|
+
extern void Slice_int32_set(long long int handle, GoInt _idx, long int _vl);
|
|
208
|
+
extern void Slice_int32_append(long long int handle, long int _vl);
|
|
209
|
+
|
|
210
|
+
// --- wrapping slice: []int64 ---
|
|
211
|
+
//
|
|
212
|
+
extern long long int Slice_int64_CTor();
|
|
213
|
+
extern GoInt Slice_int64_len(long long int handle);
|
|
214
|
+
extern long long int Slice_int64_elem(long long int handle, GoInt _idx);
|
|
215
|
+
extern long long int Slice_int64_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
216
|
+
extern void Slice_int64_set(long long int handle, GoInt _idx, long long int _vl);
|
|
217
|
+
extern void Slice_int64_append(long long int handle, long long int _vl);
|
|
218
|
+
|
|
219
|
+
// --- wrapping slice: []int8 ---
|
|
220
|
+
//
|
|
221
|
+
extern long long int Slice_int8_CTor();
|
|
222
|
+
extern GoInt Slice_int8_len(long long int handle);
|
|
223
|
+
extern char Slice_int8_elem(long long int handle, GoInt _idx);
|
|
224
|
+
extern long long int Slice_int8_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
225
|
+
extern void Slice_int8_set(long long int handle, GoInt _idx, char _vl);
|
|
226
|
+
extern void Slice_int8_append(long long int handle, char _vl);
|
|
227
|
+
|
|
228
|
+
// --- wrapping slice: []rune ---
|
|
229
|
+
//
|
|
230
|
+
extern long long int Slice_rune_CTor();
|
|
231
|
+
extern GoInt Slice_rune_len(long long int handle);
|
|
232
|
+
extern long int Slice_rune_elem(long long int handle, GoInt _idx);
|
|
233
|
+
extern long long int Slice_rune_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
234
|
+
extern void Slice_rune_set(long long int handle, GoInt _idx, long int _vl);
|
|
235
|
+
extern void Slice_rune_append(long long int handle, long int _vl);
|
|
236
|
+
|
|
237
|
+
// --- wrapping slice: []string ---
|
|
238
|
+
//
|
|
239
|
+
extern long long int Slice_string_CTor();
|
|
240
|
+
extern GoInt Slice_string_len(long long int handle);
|
|
241
|
+
extern char* Slice_string_elem(long long int handle, GoInt _idx);
|
|
242
|
+
extern long long int Slice_string_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
243
|
+
extern void Slice_string_set(long long int handle, GoInt _idx, char* _vl);
|
|
244
|
+
extern void Slice_string_append(long long int handle, char* _vl);
|
|
245
|
+
|
|
246
|
+
// --- wrapping slice: []uint ---
|
|
247
|
+
//
|
|
248
|
+
extern long long int Slice_uint_CTor();
|
|
249
|
+
extern GoInt Slice_uint_len(long long int handle);
|
|
250
|
+
extern long long unsigned int Slice_uint_elem(long long int handle, GoInt _idx);
|
|
251
|
+
extern long long int Slice_uint_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
252
|
+
extern void Slice_uint_set(long long int handle, GoInt _idx, long long unsigned int _vl);
|
|
253
|
+
extern void Slice_uint_append(long long int handle, long long unsigned int _vl);
|
|
254
|
+
|
|
255
|
+
// --- wrapping slice: []uint16 ---
|
|
256
|
+
//
|
|
257
|
+
extern long long int Slice_uint16_CTor();
|
|
258
|
+
extern GoInt Slice_uint16_len(long long int handle);
|
|
259
|
+
extern short unsigned int Slice_uint16_elem(long long int handle, GoInt _idx);
|
|
260
|
+
extern long long int Slice_uint16_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
261
|
+
extern void Slice_uint16_set(long long int handle, GoInt _idx, short unsigned int _vl);
|
|
262
|
+
extern void Slice_uint16_append(long long int handle, short unsigned int _vl);
|
|
263
|
+
|
|
264
|
+
// --- wrapping slice: []uint32 ---
|
|
265
|
+
//
|
|
266
|
+
extern long long int Slice_uint32_CTor();
|
|
267
|
+
extern GoInt Slice_uint32_len(long long int handle);
|
|
268
|
+
extern long unsigned int Slice_uint32_elem(long long int handle, GoInt _idx);
|
|
269
|
+
extern long long int Slice_uint32_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
270
|
+
extern void Slice_uint32_set(long long int handle, GoInt _idx, long unsigned int _vl);
|
|
271
|
+
extern void Slice_uint32_append(long long int handle, long unsigned int _vl);
|
|
272
|
+
|
|
273
|
+
// --- wrapping slice: []uint64 ---
|
|
274
|
+
//
|
|
275
|
+
extern long long int Slice_uint64_CTor();
|
|
276
|
+
extern GoInt Slice_uint64_len(long long int handle);
|
|
277
|
+
extern long long unsigned int Slice_uint64_elem(long long int handle, GoInt _idx);
|
|
278
|
+
extern long long int Slice_uint64_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
279
|
+
extern void Slice_uint64_set(long long int handle, GoInt _idx, long long unsigned int _vl);
|
|
280
|
+
extern void Slice_uint64_append(long long int handle, long long unsigned int _vl);
|
|
281
|
+
|
|
282
|
+
// --- wrapping slice: []uint8 ---
|
|
283
|
+
//
|
|
284
|
+
extern long long int Slice_uint8_CTor();
|
|
285
|
+
extern GoInt Slice_uint8_len(long long int handle);
|
|
286
|
+
extern unsigned char Slice_uint8_elem(long long int handle, GoInt _idx);
|
|
287
|
+
extern long long int Slice_uint8_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
288
|
+
extern void Slice_uint8_set(long long int handle, GoInt _idx, unsigned char _vl);
|
|
289
|
+
extern void Slice_uint8_append(long long int handle, unsigned char _vl);
|
|
290
|
+
|
|
291
|
+
// --- wrapping slice: []whatsapp.Attachment ---
|
|
292
|
+
//
|
|
293
|
+
extern long long int Slice_whatsapp_Attachment_CTor();
|
|
294
|
+
extern GoInt Slice_whatsapp_Attachment_len(long long int handle);
|
|
295
|
+
extern long long int Slice_whatsapp_Attachment_elem(long long int handle, GoInt _idx);
|
|
296
|
+
extern long long int Slice_whatsapp_Attachment_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
297
|
+
extern void Slice_whatsapp_Attachment_set(long long int handle, GoInt _idx, long long int _vl);
|
|
298
|
+
extern void Slice_whatsapp_Attachment_append(long long int handle, long long int _vl);
|
|
299
|
+
|
|
300
|
+
// --- wrapping slice: []whatsapp.Contact ---
|
|
301
|
+
//
|
|
302
|
+
extern long long int Slice_whatsapp_Contact_CTor();
|
|
303
|
+
extern GoInt Slice_whatsapp_Contact_len(long long int handle);
|
|
304
|
+
extern long long int Slice_whatsapp_Contact_elem(long long int handle, GoInt _idx);
|
|
305
|
+
extern long long int Slice_whatsapp_Contact_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
306
|
+
extern void Slice_whatsapp_Contact_set(long long int handle, GoInt _idx, long long int _vl);
|
|
307
|
+
extern void Slice_whatsapp_Contact_append(long long int handle, long long int _vl);
|
|
308
|
+
|
|
309
|
+
// --- wrapping slice: []whatsapp.Group ---
|
|
310
|
+
//
|
|
311
|
+
extern long long int Slice_whatsapp_Group_CTor();
|
|
312
|
+
extern GoInt Slice_whatsapp_Group_len(long long int handle);
|
|
313
|
+
extern long long int Slice_whatsapp_Group_elem(long long int handle, GoInt _idx);
|
|
314
|
+
extern long long int Slice_whatsapp_Group_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
315
|
+
extern void Slice_whatsapp_Group_set(long long int handle, GoInt _idx, long long int _vl);
|
|
316
|
+
extern void Slice_whatsapp_Group_append(long long int handle, long long int _vl);
|
|
317
|
+
|
|
318
|
+
// --- wrapping slice: []whatsapp.GroupParticipant ---
|
|
319
|
+
//
|
|
320
|
+
extern long long int Slice_whatsapp_GroupParticipant_CTor();
|
|
321
|
+
extern GoInt Slice_whatsapp_GroupParticipant_len(long long int handle);
|
|
322
|
+
extern long long int Slice_whatsapp_GroupParticipant_elem(long long int handle, GoInt _idx);
|
|
323
|
+
extern long long int Slice_whatsapp_GroupParticipant_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
324
|
+
extern void Slice_whatsapp_GroupParticipant_set(long long int handle, GoInt _idx, long long int _vl);
|
|
325
|
+
extern void Slice_whatsapp_GroupParticipant_append(long long int handle, long long int _vl);
|
|
326
|
+
|
|
327
|
+
// --- wrapping slice: []whatsapp.Message ---
|
|
328
|
+
//
|
|
329
|
+
extern long long int Slice_whatsapp_Message_CTor();
|
|
330
|
+
extern GoInt Slice_whatsapp_Message_len(long long int handle);
|
|
331
|
+
extern long long int Slice_whatsapp_Message_elem(long long int handle, GoInt _idx);
|
|
332
|
+
extern long long int Slice_whatsapp_Message_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
333
|
+
extern void Slice_whatsapp_Message_set(long long int handle, GoInt _idx, long long int _vl);
|
|
334
|
+
extern void Slice_whatsapp_Message_append(long long int handle, long long int _vl);
|
|
335
|
+
|
|
336
|
+
// --- wrapping slice: []whatsapp.Receipt ---
|
|
337
|
+
//
|
|
338
|
+
extern long long int Slice_whatsapp_Receipt_CTor();
|
|
339
|
+
extern GoInt Slice_whatsapp_Receipt_len(long long int handle);
|
|
340
|
+
extern long long int Slice_whatsapp_Receipt_elem(long long int handle, GoInt _idx);
|
|
341
|
+
extern long long int Slice_whatsapp_Receipt_subslice(long long int handle, GoInt _st, GoInt _ed);
|
|
342
|
+
extern void Slice_whatsapp_Receipt_set(long long int handle, GoInt _idx, long long int _vl);
|
|
343
|
+
extern void Slice_whatsapp_Receipt_append(long long int handle, long long int _vl);
|
|
344
|
+
|
|
345
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
346
|
+
//
|
|
347
|
+
extern long long int whatsapp_Attachment_CTor();
|
|
348
|
+
extern char* whatsapp_Attachment_MIME_Get(long long int handle);
|
|
349
|
+
extern void whatsapp_Attachment_MIME_Set(long long int handle, char* val);
|
|
350
|
+
extern char* whatsapp_Attachment_Filename_Get(long long int handle);
|
|
351
|
+
extern void whatsapp_Attachment_Filename_Set(long long int handle, char* val);
|
|
352
|
+
extern char* whatsapp_Attachment_Caption_Get(long long int handle);
|
|
353
|
+
extern void whatsapp_Attachment_Caption_Set(long long int handle, char* val);
|
|
354
|
+
extern long long int whatsapp_Attachment_Data_Get(long long int handle);
|
|
355
|
+
extern void whatsapp_Attachment_Data_Set(long long int handle, long long int val);
|
|
356
|
+
extern long long int whatsapp_Attachment_GetSpec(long long int _handle, long long int ctx);
|
|
357
|
+
|
|
358
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
359
|
+
//
|
|
360
|
+
extern long long int whatsapp_Avatar_CTor();
|
|
361
|
+
extern char* whatsapp_Avatar_ID_Get(long long int handle);
|
|
362
|
+
extern void whatsapp_Avatar_ID_Set(long long int handle, char* val);
|
|
363
|
+
extern char* whatsapp_Avatar_URL_Get(long long int handle);
|
|
364
|
+
extern void whatsapp_Avatar_URL_Set(long long int handle, char* val);
|
|
365
|
+
|
|
366
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
367
|
+
//
|
|
368
|
+
extern long long int whatsapp_Call_CTor();
|
|
369
|
+
extern long long int whatsapp_Call_State_Get(long long int handle);
|
|
370
|
+
extern void whatsapp_Call_State_Set(long long int handle, long long int val);
|
|
371
|
+
extern char* whatsapp_Call_JID_Get(long long int handle);
|
|
372
|
+
extern void whatsapp_Call_JID_Set(long long int handle, char* val);
|
|
373
|
+
extern long long int whatsapp_Call_Timestamp_Get(long long int handle);
|
|
374
|
+
extern void whatsapp_Call_Timestamp_Set(long long int handle, long long int val);
|
|
375
|
+
|
|
376
|
+
// --- wrapping struct: whatsapp.Connect ---
|
|
377
|
+
//
|
|
378
|
+
extern long long int whatsapp_Connect_CTor();
|
|
379
|
+
extern char* whatsapp_Connect_JID_Get(long long int handle);
|
|
380
|
+
extern void whatsapp_Connect_JID_Set(long long int handle, char* val);
|
|
381
|
+
extern char* whatsapp_Connect_Error_Get(long long int handle);
|
|
382
|
+
extern void whatsapp_Connect_Error_Set(long long int handle, char* val);
|
|
383
|
+
|
|
384
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
385
|
+
//
|
|
386
|
+
extern long long int whatsapp_Group_CTor();
|
|
387
|
+
extern char* whatsapp_Group_JID_Get(long long int handle);
|
|
388
|
+
extern void whatsapp_Group_JID_Set(long long int handle, char* val);
|
|
389
|
+
extern char* whatsapp_Group_Name_Get(long long int handle);
|
|
390
|
+
extern void whatsapp_Group_Name_Set(long long int handle, char* val);
|
|
391
|
+
extern long long int whatsapp_Group_Subject_Get(long long int handle);
|
|
392
|
+
extern void whatsapp_Group_Subject_Set(long long int handle, long long int val);
|
|
393
|
+
extern char* whatsapp_Group_Nickname_Get(long long int handle);
|
|
394
|
+
extern void whatsapp_Group_Nickname_Set(long long int handle, char* val);
|
|
395
|
+
extern long long int whatsapp_Group_Participants_Get(long long int handle);
|
|
396
|
+
extern void whatsapp_Group_Participants_Set(long long int handle, long long int val);
|
|
397
|
+
|
|
398
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
399
|
+
//
|
|
400
|
+
extern long long int whatsapp_GroupParticipant_CTor();
|
|
401
|
+
extern char* whatsapp_GroupParticipant_JID_Get(long long int handle);
|
|
402
|
+
extern void whatsapp_GroupParticipant_JID_Set(long long int handle, char* val);
|
|
403
|
+
extern long long int whatsapp_GroupParticipant_Affiliation_Get(long long int handle);
|
|
404
|
+
extern void whatsapp_GroupParticipant_Affiliation_Set(long long int handle, long long int val);
|
|
405
|
+
extern long long int whatsapp_GroupParticipant_Action_Get(long long int handle);
|
|
406
|
+
extern void whatsapp_GroupParticipant_Action_Set(long long int handle, long long int val);
|
|
407
|
+
|
|
408
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
409
|
+
//
|
|
410
|
+
extern long long int whatsapp_Message_CTor();
|
|
411
|
+
extern long long int whatsapp_Message_Kind_Get(long long int handle);
|
|
412
|
+
extern void whatsapp_Message_Kind_Set(long long int handle, long long int val);
|
|
413
|
+
extern char* whatsapp_Message_ID_Get(long long int handle);
|
|
414
|
+
extern void whatsapp_Message_ID_Set(long long int handle, char* val);
|
|
415
|
+
extern char* whatsapp_Message_JID_Get(long long int handle);
|
|
416
|
+
extern void whatsapp_Message_JID_Set(long long int handle, char* val);
|
|
417
|
+
extern char* whatsapp_Message_GroupJID_Get(long long int handle);
|
|
418
|
+
extern void whatsapp_Message_GroupJID_Set(long long int handle, char* val);
|
|
419
|
+
extern char* whatsapp_Message_OriginJID_Get(long long int handle);
|
|
420
|
+
extern void whatsapp_Message_OriginJID_Set(long long int handle, char* val);
|
|
421
|
+
extern char* whatsapp_Message_Body_Get(long long int handle);
|
|
422
|
+
extern void whatsapp_Message_Body_Set(long long int handle, char* val);
|
|
423
|
+
extern long long int whatsapp_Message_Timestamp_Get(long long int handle);
|
|
424
|
+
extern void whatsapp_Message_Timestamp_Set(long long int handle, long long int val);
|
|
425
|
+
extern char whatsapp_Message_IsCarbon_Get(long long int handle);
|
|
426
|
+
extern void whatsapp_Message_IsCarbon_Set(long long int handle, char val);
|
|
427
|
+
extern char whatsapp_Message_IsForwarded_Get(long long int handle);
|
|
428
|
+
extern void whatsapp_Message_IsForwarded_Set(long long int handle, char val);
|
|
429
|
+
extern char* whatsapp_Message_ReplyID_Get(long long int handle);
|
|
430
|
+
extern void whatsapp_Message_ReplyID_Set(long long int handle, char* val);
|
|
431
|
+
extern char* whatsapp_Message_ReplyBody_Get(long long int handle);
|
|
432
|
+
extern void whatsapp_Message_ReplyBody_Set(long long int handle, char* val);
|
|
433
|
+
extern long long int whatsapp_Message_Attachments_Get(long long int handle);
|
|
434
|
+
extern void whatsapp_Message_Attachments_Set(long long int handle, long long int val);
|
|
435
|
+
extern long long int whatsapp_Message_Preview_Get(long long int handle);
|
|
436
|
+
extern void whatsapp_Message_Preview_Set(long long int handle, long long int val);
|
|
437
|
+
extern long long int whatsapp_Message_Location_Get(long long int handle);
|
|
438
|
+
extern void whatsapp_Message_Location_Set(long long int handle, long long int val);
|
|
439
|
+
extern long long int whatsapp_Message_MentionJIDs_Get(long long int handle);
|
|
440
|
+
extern void whatsapp_Message_MentionJIDs_Set(long long int handle, long long int val);
|
|
441
|
+
extern long long int whatsapp_Message_Receipts_Get(long long int handle);
|
|
442
|
+
extern void whatsapp_Message_Receipts_Set(long long int handle, long long int val);
|
|
443
|
+
extern long long int whatsapp_Message_Reactions_Get(long long int handle);
|
|
444
|
+
extern void whatsapp_Message_Reactions_Set(long long int handle, long long int val);
|
|
445
|
+
|
|
446
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
447
|
+
//
|
|
448
|
+
extern long long int whatsapp_ChatState_CTor();
|
|
449
|
+
extern long long int whatsapp_ChatState_Kind_Get(long long int handle);
|
|
450
|
+
extern void whatsapp_ChatState_Kind_Set(long long int handle, long long int val);
|
|
451
|
+
extern char* whatsapp_ChatState_JID_Get(long long int handle);
|
|
452
|
+
extern void whatsapp_ChatState_JID_Set(long long int handle, char* val);
|
|
453
|
+
extern char* whatsapp_ChatState_GroupJID_Get(long long int handle);
|
|
454
|
+
extern void whatsapp_ChatState_GroupJID_Set(long long int handle, char* val);
|
|
455
|
+
|
|
456
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
457
|
+
//
|
|
458
|
+
extern long long int whatsapp_Contact_CTor();
|
|
459
|
+
extern char* whatsapp_Contact_JID_Get(long long int handle);
|
|
460
|
+
extern void whatsapp_Contact_JID_Set(long long int handle, char* val);
|
|
461
|
+
extern char* whatsapp_Contact_Name_Get(long long int handle);
|
|
462
|
+
extern void whatsapp_Contact_Name_Set(long long int handle, char* val);
|
|
463
|
+
|
|
464
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
465
|
+
//
|
|
466
|
+
extern long long int whatsapp_EventPayload_CTor();
|
|
467
|
+
extern char* whatsapp_EventPayload_QRCode_Get(long long int handle);
|
|
468
|
+
extern void whatsapp_EventPayload_QRCode_Set(long long int handle, char* val);
|
|
469
|
+
extern char* whatsapp_EventPayload_PairDeviceID_Get(long long int handle);
|
|
470
|
+
extern void whatsapp_EventPayload_PairDeviceID_Set(long long int handle, char* val);
|
|
471
|
+
extern long long int whatsapp_EventPayload_Connect_Get(long long int handle);
|
|
472
|
+
extern void whatsapp_EventPayload_Connect_Set(long long int handle, long long int val);
|
|
473
|
+
extern long long int whatsapp_EventPayload_Contact_Get(long long int handle);
|
|
474
|
+
extern void whatsapp_EventPayload_Contact_Set(long long int handle, long long int val);
|
|
475
|
+
extern long long int whatsapp_EventPayload_Presence_Get(long long int handle);
|
|
476
|
+
extern void whatsapp_EventPayload_Presence_Set(long long int handle, long long int val);
|
|
477
|
+
extern long long int whatsapp_EventPayload_Message_Get(long long int handle);
|
|
478
|
+
extern void whatsapp_EventPayload_Message_Set(long long int handle, long long int val);
|
|
479
|
+
extern long long int whatsapp_EventPayload_ChatState_Get(long long int handle);
|
|
480
|
+
extern void whatsapp_EventPayload_ChatState_Set(long long int handle, long long int val);
|
|
481
|
+
extern long long int whatsapp_EventPayload_Receipt_Get(long long int handle);
|
|
482
|
+
extern void whatsapp_EventPayload_Receipt_Set(long long int handle, long long int val);
|
|
483
|
+
extern long long int whatsapp_EventPayload_Group_Get(long long int handle);
|
|
484
|
+
extern void whatsapp_EventPayload_Group_Set(long long int handle, long long int val);
|
|
485
|
+
extern long long int whatsapp_EventPayload_Call_Get(long long int handle);
|
|
486
|
+
extern void whatsapp_EventPayload_Call_Set(long long int handle, long long int val);
|
|
487
|
+
|
|
488
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
489
|
+
//
|
|
490
|
+
extern long long int whatsapp_LinkedDevice_CTor();
|
|
491
|
+
extern char* whatsapp_LinkedDevice_ID_Get(long long int handle);
|
|
492
|
+
extern void whatsapp_LinkedDevice_ID_Set(long long int handle, char* val);
|
|
493
|
+
extern long long int whatsapp_LinkedDevice_JID(long long int _handle);
|
|
494
|
+
|
|
495
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
496
|
+
//
|
|
497
|
+
extern long long int whatsapp_Location_CTor();
|
|
498
|
+
extern double whatsapp_Location_Latitude_Get(long long int handle);
|
|
499
|
+
extern void whatsapp_Location_Latitude_Set(long long int handle, double val);
|
|
500
|
+
extern double whatsapp_Location_Longitude_Get(long long int handle);
|
|
501
|
+
extern void whatsapp_Location_Longitude_Set(long long int handle, double val);
|
|
502
|
+
extern long long int whatsapp_Location_Accuracy_Get(long long int handle);
|
|
503
|
+
extern void whatsapp_Location_Accuracy_Set(long long int handle, long long int val);
|
|
504
|
+
extern char whatsapp_Location_IsLive_Get(long long int handle);
|
|
505
|
+
extern void whatsapp_Location_IsLive_Set(long long int handle, char val);
|
|
506
|
+
extern char* whatsapp_Location_Name_Get(long long int handle);
|
|
507
|
+
extern void whatsapp_Location_Name_Set(long long int handle, char* val);
|
|
508
|
+
extern char* whatsapp_Location_Address_Get(long long int handle);
|
|
509
|
+
extern void whatsapp_Location_Address_Set(long long int handle, char* val);
|
|
510
|
+
extern char* whatsapp_Location_URL_Get(long long int handle);
|
|
511
|
+
extern void whatsapp_Location_URL_Set(long long int handle, char* val);
|
|
512
|
+
|
|
513
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
514
|
+
//
|
|
515
|
+
extern long long int whatsapp_Presence_CTor();
|
|
516
|
+
extern char* whatsapp_Presence_JID_Get(long long int handle);
|
|
517
|
+
extern void whatsapp_Presence_JID_Set(long long int handle, char* val);
|
|
518
|
+
extern long long int whatsapp_Presence_Kind_Get(long long int handle);
|
|
519
|
+
extern void whatsapp_Presence_Kind_Set(long long int handle, long long int val);
|
|
520
|
+
extern long long int whatsapp_Presence_LastSeen_Get(long long int handle);
|
|
521
|
+
extern void whatsapp_Presence_LastSeen_Set(long long int handle, long long int val);
|
|
522
|
+
|
|
523
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
524
|
+
//
|
|
525
|
+
extern long long int whatsapp_Preview_CTor();
|
|
526
|
+
extern long long int whatsapp_Preview_Kind_Get(long long int handle);
|
|
527
|
+
extern void whatsapp_Preview_Kind_Set(long long int handle, long long int val);
|
|
528
|
+
extern char* whatsapp_Preview_URL_Get(long long int handle);
|
|
529
|
+
extern void whatsapp_Preview_URL_Set(long long int handle, char* val);
|
|
530
|
+
extern char* whatsapp_Preview_Title_Get(long long int handle);
|
|
531
|
+
extern void whatsapp_Preview_Title_Set(long long int handle, char* val);
|
|
532
|
+
extern char* whatsapp_Preview_Description_Get(long long int handle);
|
|
533
|
+
extern void whatsapp_Preview_Description_Set(long long int handle, char* val);
|
|
534
|
+
extern long long int whatsapp_Preview_Thumbnail_Get(long long int handle);
|
|
535
|
+
extern void whatsapp_Preview_Thumbnail_Set(long long int handle, long long int val);
|
|
536
|
+
|
|
537
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
538
|
+
//
|
|
539
|
+
extern long long int whatsapp_Gateway_CTor();
|
|
540
|
+
extern char* whatsapp_Gateway_DBPath_Get(long long int handle);
|
|
541
|
+
extern void whatsapp_Gateway_DBPath_Set(long long int handle, char* val);
|
|
542
|
+
extern char* whatsapp_Gateway_Name_Get(long long int handle);
|
|
543
|
+
extern void whatsapp_Gateway_Name_Set(long long int handle, char* val);
|
|
544
|
+
extern char* whatsapp_Gateway_LogLevel_Get(long long int handle);
|
|
545
|
+
extern void whatsapp_Gateway_LogLevel_Set(long long int handle, char* val);
|
|
546
|
+
extern char* whatsapp_Gateway_TempDir_Get(long long int handle);
|
|
547
|
+
extern void whatsapp_Gateway_TempDir_Set(long long int handle, char* val);
|
|
548
|
+
extern char* whatsapp_Gateway_Init(long long int _handle);
|
|
549
|
+
extern long long int whatsapp_Gateway_NewSession(long long int _handle, long long int device);
|
|
550
|
+
extern char* whatsapp_Gateway_CleanupSession(long long int _handle, long long int device);
|
|
551
|
+
|
|
552
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
553
|
+
//
|
|
554
|
+
extern long long int whatsapp_Receipt_CTor();
|
|
555
|
+
extern long long int whatsapp_Receipt_Kind_Get(long long int handle);
|
|
556
|
+
extern void whatsapp_Receipt_Kind_Set(long long int handle, long long int val);
|
|
557
|
+
extern long long int whatsapp_Receipt_MessageIDs_Get(long long int handle);
|
|
558
|
+
extern void whatsapp_Receipt_MessageIDs_Set(long long int handle, long long int val);
|
|
559
|
+
extern char* whatsapp_Receipt_JID_Get(long long int handle);
|
|
560
|
+
extern void whatsapp_Receipt_JID_Set(long long int handle, char* val);
|
|
561
|
+
extern char* whatsapp_Receipt_GroupJID_Get(long long int handle);
|
|
562
|
+
extern void whatsapp_Receipt_GroupJID_Set(long long int handle, char* val);
|
|
563
|
+
extern long long int whatsapp_Receipt_Timestamp_Get(long long int handle);
|
|
564
|
+
extern void whatsapp_Receipt_Timestamp_Set(long long int handle, long long int val);
|
|
565
|
+
extern char whatsapp_Receipt_IsCarbon_Get(long long int handle);
|
|
566
|
+
extern void whatsapp_Receipt_IsCarbon_Set(long long int handle, char val);
|
|
567
|
+
|
|
568
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
569
|
+
//
|
|
570
|
+
extern long long int whatsapp_GroupSubject_CTor();
|
|
571
|
+
extern char* whatsapp_GroupSubject_Subject_Get(long long int handle);
|
|
572
|
+
extern void whatsapp_GroupSubject_Subject_Set(long long int handle, char* val);
|
|
573
|
+
extern long long int whatsapp_GroupSubject_SetAt_Get(long long int handle);
|
|
574
|
+
extern void whatsapp_GroupSubject_SetAt_Set(long long int handle, long long int val);
|
|
575
|
+
extern char* whatsapp_GroupSubject_SetByJID_Get(long long int handle);
|
|
576
|
+
extern void whatsapp_GroupSubject_SetByJID_Set(long long int handle, char* val);
|
|
577
|
+
|
|
578
|
+
// --- wrapping struct: whatsapp.Session ---
|
|
579
|
+
//
|
|
580
|
+
extern long long int whatsapp_Session_CTor();
|
|
581
|
+
extern char* whatsapp_Session_Login(long long int _handle);
|
|
582
|
+
extern char* whatsapp_Session_Logout(long long int _handle);
|
|
583
|
+
extern char* whatsapp_Session_Disconnect(long long int _handle);
|
|
584
|
+
extern char* whatsapp_Session_PairPhone(long long int _handle, char* phone);
|
|
585
|
+
extern char* whatsapp_Session_SendMessage(long long int _handle, long long int message);
|
|
586
|
+
extern char* whatsapp_Session_GenerateMessageID(long long int _handle);
|
|
587
|
+
extern char* whatsapp_Session_SendChatState(long long int _handle, long long int state);
|
|
588
|
+
extern char* whatsapp_Session_SendReceipt(long long int _handle, long long int receipt);
|
|
589
|
+
extern char* whatsapp_Session_SendPresence(long long int _handle, long long int presence, char* statusMessage);
|
|
590
|
+
extern long long int whatsapp_Session_GetContacts(long long int _handle, char refresh);
|
|
591
|
+
extern long long int whatsapp_Session_GetGroups(long long int _handle);
|
|
592
|
+
extern long long int whatsapp_Session_CreateGroup(long long int _handle, char* name, long long int participants);
|
|
593
|
+
extern char* whatsapp_Session_LeaveGroup(long long int _handle, char* resourceID);
|
|
594
|
+
extern long long int whatsapp_Session_GetAvatar(long long int _handle, char* resourceID, char* avatarID);
|
|
595
|
+
extern char* whatsapp_Session_SetAvatar(long long int _handle, char* resourceID, long long int avatar);
|
|
596
|
+
extern char* whatsapp_Session_SetGroupName(long long int _handle, char* resourceID, char* name);
|
|
597
|
+
extern char* whatsapp_Session_SetGroupTopic(long long int _handle, char* resourceID, char* topic);
|
|
598
|
+
extern long long int whatsapp_Session_UpdateGroupParticipants(long long int _handle, char* resourceID, long long int participants);
|
|
599
|
+
extern long long int whatsapp_Session_FindContact(long long int _handle, char* phone);
|
|
600
|
+
extern char* whatsapp_Session_RequestMessageHistory(long long int _handle, char* resourceID, long long int oldestMessage);
|
|
601
|
+
extern void whatsapp_Session_SetEventHandler(long long int _handle, PyObject* h, char goRun);
|
|
602
|
+
extern long long int whatsapp_NewGateway();
|
|
603
|
+
|
|
604
|
+
#ifdef __cplusplus
|
|
605
|
+
}
|
|
606
|
+
#endif
|
|
Binary file
|