forked from xbee/go-toxcore
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathconst_auto.go
350 lines (321 loc) · 30.5 KB
/
const_auto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
package tox
/*
#include "tox/tox.h"
*/
import "C"
var _ERR_OPTIONS_NEWS = make(map[int]string)
func init(){_ERR_OPTIONS_NEWS[-1] = "TE-1: _ERR_OPTIONS_NEW"}
const ERR_OPTIONS_NEW_OK = int(C.TOX_ERR_OPTIONS_NEW_OK) // 0
func init(){_ERR_OPTIONS_NEWS[ERR_OPTIONS_NEW_OK] = "TE00: The function returned successfully."}
const ERR_OPTIONS_NEW_MALLOC = int(C.TOX_ERR_OPTIONS_NEW_MALLOC) // 1
func init(){_ERR_OPTIONS_NEWS[ERR_OPTIONS_NEW_MALLOC] = "TE01: The function failed to allocate enough memory for the options struct."}
var _ERR_NEWS = make(map[int]string)
func init(){_ERR_NEWS[-1] = "TE-1: _ERR_NEW"}
const ERR_NEW_OK = int(C.TOX_ERR_NEW_OK) // 0
func init(){_ERR_NEWS[ERR_NEW_OK] = "TE00: The function returned successfully."}
const ERR_NEW_NULL = int(C.TOX_ERR_NEW_NULL) // 1
func init(){_ERR_NEWS[ERR_NEW_NULL] = "TE01: One of the arguments to the function was NULL when it was not expected."}
const ERR_NEW_MALLOC = int(C.TOX_ERR_NEW_MALLOC) // 2
func init(){_ERR_NEWS[ERR_NEW_MALLOC] = "TE02: The function was unable to allocate enough memory to store the internal structures for the Tox object."}
const ERR_NEW_PORT_ALLOC = int(C.TOX_ERR_NEW_PORT_ALLOC) // 3
func init(){_ERR_NEWS[ERR_NEW_PORT_ALLOC] = "TE03: The function was unable to bind to a port. This may mean that all ports have already been bound, e.g. by other Tox instances, or it may mean a permission error. You may be able to gather more information from errno."}
const ERR_NEW_PROXY_BAD_TYPE = int(C.TOX_ERR_NEW_PROXY_BAD_TYPE) // 4
func init(){_ERR_NEWS[ERR_NEW_PROXY_BAD_TYPE] = "TE04: proxy_type was invalid."}
const ERR_NEW_PROXY_BAD_HOST = int(C.TOX_ERR_NEW_PROXY_BAD_HOST) // 5
func init(){_ERR_NEWS[ERR_NEW_PROXY_BAD_HOST] = "TE05: proxy_type was valid but the proxy_host passed had an invalid format or was NULL."}
const ERR_NEW_PROXY_BAD_PORT = int(C.TOX_ERR_NEW_PROXY_BAD_PORT) // 6
func init(){_ERR_NEWS[ERR_NEW_PROXY_BAD_PORT] = "TE06: proxy_type was valid, but the proxy_port was invalid."}
const ERR_NEW_PROXY_NOT_FOUND = int(C.TOX_ERR_NEW_PROXY_NOT_FOUND) // 7
func init(){_ERR_NEWS[ERR_NEW_PROXY_NOT_FOUND] = "TE07: The proxy address passed could not be resolved."}
const ERR_NEW_LOAD_ENCRYPTED = int(C.TOX_ERR_NEW_LOAD_ENCRYPTED) // 8
func init(){_ERR_NEWS[ERR_NEW_LOAD_ENCRYPTED] = "TE08: The byte array to be loaded contained an encrypted save."}
const ERR_NEW_LOAD_BAD_FORMAT = int(C.TOX_ERR_NEW_LOAD_BAD_FORMAT) // 9
func init(){_ERR_NEWS[ERR_NEW_LOAD_BAD_FORMAT] = "TE09: The data format was invalid. This can happen when loading data that was saved by an older version of Tox, or when the data has been corrupted. When loading from badly formatted data, some data may have been loaded, and the rest is discarded. Passing an invalid length parameter also causes this error."}
var _ERR_BOOTSTRAPS = make(map[int]string)
func init(){_ERR_BOOTSTRAPS[-1] = "TE-1: _ERR_BOOTSTRAP"}
const ERR_BOOTSTRAP_OK = int(C.TOX_ERR_BOOTSTRAP_OK) // 0
func init(){_ERR_BOOTSTRAPS[ERR_BOOTSTRAP_OK] = "TE00: The function returned successfully."}
const ERR_BOOTSTRAP_NULL = int(C.TOX_ERR_BOOTSTRAP_NULL) // 1
func init(){_ERR_BOOTSTRAPS[ERR_BOOTSTRAP_NULL] = "TE01: One of the arguments to the function was NULL when it was not expected."}
const ERR_BOOTSTRAP_BAD_HOST = int(C.TOX_ERR_BOOTSTRAP_BAD_HOST) // 2
func init(){_ERR_BOOTSTRAPS[ERR_BOOTSTRAP_BAD_HOST] = "TE02: The hostname could not be resolved to an IP address, or the IP address passed was invalid."}
const ERR_BOOTSTRAP_BAD_PORT = int(C.TOX_ERR_BOOTSTRAP_BAD_PORT) // 3
func init(){_ERR_BOOTSTRAPS[ERR_BOOTSTRAP_BAD_PORT] = "TE03: The port passed was invalid. The valid port range is (1, 65535)."}
var _ERR_SET_INFOS = make(map[int]string)
func init(){_ERR_SET_INFOS[-1] = "TE-1: _ERR_SET_INFO"}
const ERR_SET_INFO_OK = int(C.TOX_ERR_SET_INFO_OK) // 0
func init(){_ERR_SET_INFOS[ERR_SET_INFO_OK] = "TE00: The function returned successfully."}
const ERR_SET_INFO_NULL = int(C.TOX_ERR_SET_INFO_NULL) // 1
func init(){_ERR_SET_INFOS[ERR_SET_INFO_NULL] = "TE01: One of the arguments to the function was NULL when it was not expected."}
const ERR_SET_INFO_TOO_LONG = int(C.TOX_ERR_SET_INFO_TOO_LONG) // 2
func init(){_ERR_SET_INFOS[ERR_SET_INFO_TOO_LONG] = "TE02: Information length exceeded maximum permissible size."}
var _ERR_FRIEND_ADDS = make(map[int]string)
func init(){_ERR_FRIEND_ADDS[-1] = "TE-1: _ERR_FRIEND_ADD"}
const ERR_FRIEND_ADD_OK = int(C.TOX_ERR_FRIEND_ADD_OK) // 0
func init(){_ERR_FRIEND_ADDS[ERR_FRIEND_ADD_OK] = "TE00: The function returned successfully."}
const ERR_FRIEND_ADD_NULL = int(C.TOX_ERR_FRIEND_ADD_NULL) // 1
func init(){_ERR_FRIEND_ADDS[ERR_FRIEND_ADD_NULL] = "TE01: One of the arguments to the function was NULL when it was not expected."}
const ERR_FRIEND_ADD_TOO_LONG = int(C.TOX_ERR_FRIEND_ADD_TOO_LONG) // 2
func init(){_ERR_FRIEND_ADDS[ERR_FRIEND_ADD_TOO_LONG] = "TE02: The length of the friend request message exceeded TOX_MAX_FRIEND_REQUEST_LENGTH."}
const ERR_FRIEND_ADD_NO_MESSAGE = int(C.TOX_ERR_FRIEND_ADD_NO_MESSAGE) // 3
func init(){_ERR_FRIEND_ADDS[ERR_FRIEND_ADD_NO_MESSAGE] = "TE03: The friend request message was empty. This, and the TOO_LONG code will never be returned from tox_friend_add_norequest."}
const ERR_FRIEND_ADD_OWN_KEY = int(C.TOX_ERR_FRIEND_ADD_OWN_KEY) // 4
func init(){_ERR_FRIEND_ADDS[ERR_FRIEND_ADD_OWN_KEY] = "TE04: The friend address belongs to the sending client."}
const ERR_FRIEND_ADD_ALREADY_SENT = int(C.TOX_ERR_FRIEND_ADD_ALREADY_SENT) // 5
func init(){_ERR_FRIEND_ADDS[ERR_FRIEND_ADD_ALREADY_SENT] = "TE05: A friend request has already been sent, or the address belongs to a friend that is already on the friend list."}
const ERR_FRIEND_ADD_BAD_CHECKSUM = int(C.TOX_ERR_FRIEND_ADD_BAD_CHECKSUM) // 6
func init(){_ERR_FRIEND_ADDS[ERR_FRIEND_ADD_BAD_CHECKSUM] = "TE06: The friend address checksum failed."}
const ERR_FRIEND_ADD_SET_NEW_NOSPAM = int(C.TOX_ERR_FRIEND_ADD_SET_NEW_NOSPAM) // 7
func init(){_ERR_FRIEND_ADDS[ERR_FRIEND_ADD_SET_NEW_NOSPAM] = "TE07: The friend was already there, but the nospam value was different."}
const ERR_FRIEND_ADD_MALLOC = int(C.TOX_ERR_FRIEND_ADD_MALLOC) // 8
func init(){_ERR_FRIEND_ADDS[ERR_FRIEND_ADD_MALLOC] = "TE08: A memory allocation failed when trying to increase the friend list size."}
var _ERR_FRIEND_DELETES = make(map[int]string)
func init(){_ERR_FRIEND_DELETES[-1] = "TE-1: _ERR_FRIEND_DELETE"}
const ERR_FRIEND_DELETE_OK = int(C.TOX_ERR_FRIEND_DELETE_OK) // 0
func init(){_ERR_FRIEND_DELETES[ERR_FRIEND_DELETE_OK] = "TE00: The function returned successfully."}
const ERR_FRIEND_DELETE_FRIEND_NOT_FOUND = int(C.TOX_ERR_FRIEND_DELETE_FRIEND_NOT_FOUND) // 1
func init(){_ERR_FRIEND_DELETES[ERR_FRIEND_DELETE_FRIEND_NOT_FOUND] = "TE01: There was no friend with the given friend number. No friends were deleted."}
var _ERR_FRIEND_BY_PUBLIC_KEYS = make(map[int]string)
func init(){_ERR_FRIEND_BY_PUBLIC_KEYS[-1] = "TE-1: _ERR_FRIEND_BY_PUBLIC_KEY"}
const ERR_FRIEND_BY_PUBLIC_KEY_OK = int(C.TOX_ERR_FRIEND_BY_PUBLIC_KEY_OK) // 0
func init(){_ERR_FRIEND_BY_PUBLIC_KEYS[ERR_FRIEND_BY_PUBLIC_KEY_OK] = "TE00: The function returned successfully."}
const ERR_FRIEND_BY_PUBLIC_KEY_NULL = int(C.TOX_ERR_FRIEND_BY_PUBLIC_KEY_NULL) // 1
func init(){_ERR_FRIEND_BY_PUBLIC_KEYS[ERR_FRIEND_BY_PUBLIC_KEY_NULL] = "TE01: One of the arguments to the function was NULL when it was not expected."}
const ERR_FRIEND_BY_PUBLIC_KEY_NOT_FOUND = int(C.TOX_ERR_FRIEND_BY_PUBLIC_KEY_NOT_FOUND) // 2
func init(){_ERR_FRIEND_BY_PUBLIC_KEYS[ERR_FRIEND_BY_PUBLIC_KEY_NOT_FOUND] = "TE02: No friend with the given Public Key exists on the friend list."}
var _ERR_FRIEND_GET_PUBLIC_KEYS = make(map[int]string)
func init(){_ERR_FRIEND_GET_PUBLIC_KEYS[-1] = "TE-1: _ERR_FRIEND_GET_PUBLIC_KEY"}
const ERR_FRIEND_GET_PUBLIC_KEY_OK = int(C.TOX_ERR_FRIEND_GET_PUBLIC_KEY_OK) // 0
func init(){_ERR_FRIEND_GET_PUBLIC_KEYS[ERR_FRIEND_GET_PUBLIC_KEY_OK] = "TE00: The function returned successfully."}
const ERR_FRIEND_GET_PUBLIC_KEY_FRIEND_NOT_FOUND = int(C.TOX_ERR_FRIEND_GET_PUBLIC_KEY_FRIEND_NOT_FOUND) // 1
func init(){_ERR_FRIEND_GET_PUBLIC_KEYS[ERR_FRIEND_GET_PUBLIC_KEY_FRIEND_NOT_FOUND] = "TE01: No friend with the given number exists on the friend list."}
var _ERR_FRIEND_GET_LAST_ONLINES = make(map[int]string)
func init(){_ERR_FRIEND_GET_LAST_ONLINES[-1] = "TE-1: _ERR_FRIEND_GET_LAST_ONLINE"}
const ERR_FRIEND_GET_LAST_ONLINE_OK = int(C.TOX_ERR_FRIEND_GET_LAST_ONLINE_OK) // 0
func init(){_ERR_FRIEND_GET_LAST_ONLINES[ERR_FRIEND_GET_LAST_ONLINE_OK] = "TE00: The function returned successfully."}
const ERR_FRIEND_GET_LAST_ONLINE_FRIEND_NOT_FOUND = int(C.TOX_ERR_FRIEND_GET_LAST_ONLINE_FRIEND_NOT_FOUND) // 1
func init(){_ERR_FRIEND_GET_LAST_ONLINES[ERR_FRIEND_GET_LAST_ONLINE_FRIEND_NOT_FOUND] = "TE01: No friend with the given number exists on the friend list."}
var _ERR_FRIEND_QUERYS = make(map[int]string)
func init(){_ERR_FRIEND_QUERYS[-1] = "TE-1: _ERR_FRIEND_QUERY"}
const ERR_FRIEND_QUERY_OK = int(C.TOX_ERR_FRIEND_QUERY_OK) // 0
func init(){_ERR_FRIEND_QUERYS[ERR_FRIEND_QUERY_OK] = "TE00: The function returned successfully."}
const ERR_FRIEND_QUERY_NULL = int(C.TOX_ERR_FRIEND_QUERY_NULL) // 1
func init(){_ERR_FRIEND_QUERYS[ERR_FRIEND_QUERY_NULL] = "TE01: The pointer parameter for storing the query result (name, message) was NULL. Unlike the `_self_` variants of these functions, which have no effect when a parameter is NULL, these functions return an error in that case."}
const ERR_FRIEND_QUERY_FRIEND_NOT_FOUND = int(C.TOX_ERR_FRIEND_QUERY_FRIEND_NOT_FOUND) // 2
func init(){_ERR_FRIEND_QUERYS[ERR_FRIEND_QUERY_FRIEND_NOT_FOUND] = "TE02: The friend_number did not designate a valid friend."}
var _ERR_SET_TYPINGS = make(map[int]string)
func init(){_ERR_SET_TYPINGS[-1] = "TE-1: _ERR_SET_TYPING"}
const ERR_SET_TYPING_OK = int(C.TOX_ERR_SET_TYPING_OK) // 0
func init(){_ERR_SET_TYPINGS[ERR_SET_TYPING_OK] = "TE00: The function returned successfully."}
const ERR_SET_TYPING_FRIEND_NOT_FOUND = int(C.TOX_ERR_SET_TYPING_FRIEND_NOT_FOUND) // 1
func init(){_ERR_SET_TYPINGS[ERR_SET_TYPING_FRIEND_NOT_FOUND] = "TE01: The friend number did not designate a valid friend."}
var _ERR_FRIEND_SEND_MESSAGES = make(map[int]string)
func init(){_ERR_FRIEND_SEND_MESSAGES[-1] = "TE-1: _ERR_FRIEND_SEND_MESSAGE"}
const ERR_FRIEND_SEND_MESSAGE_OK = int(C.TOX_ERR_FRIEND_SEND_MESSAGE_OK) // 0
func init(){_ERR_FRIEND_SEND_MESSAGES[ERR_FRIEND_SEND_MESSAGE_OK] = "TE00: The function returned successfully."}
const ERR_FRIEND_SEND_MESSAGE_NULL = int(C.TOX_ERR_FRIEND_SEND_MESSAGE_NULL) // 1
func init(){_ERR_FRIEND_SEND_MESSAGES[ERR_FRIEND_SEND_MESSAGE_NULL] = "TE01: One of the arguments to the function was NULL when it was not expected."}
const ERR_FRIEND_SEND_MESSAGE_FRIEND_NOT_FOUND = int(C.TOX_ERR_FRIEND_SEND_MESSAGE_FRIEND_NOT_FOUND) // 2
func init(){_ERR_FRIEND_SEND_MESSAGES[ERR_FRIEND_SEND_MESSAGE_FRIEND_NOT_FOUND] = "TE02: The friend number did not designate a valid friend."}
const ERR_FRIEND_SEND_MESSAGE_FRIEND_NOT_CONNECTED = int(C.TOX_ERR_FRIEND_SEND_MESSAGE_FRIEND_NOT_CONNECTED) // 3
func init(){_ERR_FRIEND_SEND_MESSAGES[ERR_FRIEND_SEND_MESSAGE_FRIEND_NOT_CONNECTED] = "TE03: This client is currently not connected to the friend."}
const ERR_FRIEND_SEND_MESSAGE_SENDQ = int(C.TOX_ERR_FRIEND_SEND_MESSAGE_SENDQ) // 4
func init(){_ERR_FRIEND_SEND_MESSAGES[ERR_FRIEND_SEND_MESSAGE_SENDQ] = "TE04: An allocation error occurred while increasing the send queue size."}
const ERR_FRIEND_SEND_MESSAGE_TOO_LONG = int(C.TOX_ERR_FRIEND_SEND_MESSAGE_TOO_LONG) // 5
func init(){_ERR_FRIEND_SEND_MESSAGES[ERR_FRIEND_SEND_MESSAGE_TOO_LONG] = "TE05: Message length exceeded TOX_MAX_MESSAGE_LENGTH."}
const ERR_FRIEND_SEND_MESSAGE_EMPTY = int(C.TOX_ERR_FRIEND_SEND_MESSAGE_EMPTY) // 6
func init(){_ERR_FRIEND_SEND_MESSAGES[ERR_FRIEND_SEND_MESSAGE_EMPTY] = "TE06: Attempted to send a zero-length message."}
var _ERR_FILE_CONTROLS = make(map[int]string)
func init(){_ERR_FILE_CONTROLS[-1] = "TE-1: _ERR_FILE_CONTROL"}
const ERR_FILE_CONTROL_OK = int(C.TOX_ERR_FILE_CONTROL_OK) // 0
func init(){_ERR_FILE_CONTROLS[ERR_FILE_CONTROL_OK] = "TE00: The function returned successfully."}
const ERR_FILE_CONTROL_FRIEND_NOT_FOUND = int(C.TOX_ERR_FILE_CONTROL_FRIEND_NOT_FOUND) // 1
func init(){_ERR_FILE_CONTROLS[ERR_FILE_CONTROL_FRIEND_NOT_FOUND] = "TE01: The friend_number passed did not designate a valid friend."}
const ERR_FILE_CONTROL_FRIEND_NOT_CONNECTED = int(C.TOX_ERR_FILE_CONTROL_FRIEND_NOT_CONNECTED) // 2
func init(){_ERR_FILE_CONTROLS[ERR_FILE_CONTROL_FRIEND_NOT_CONNECTED] = "TE02: This client is currently not connected to the friend."}
const ERR_FILE_CONTROL_NOT_FOUND = int(C.TOX_ERR_FILE_CONTROL_NOT_FOUND) // 3
func init(){_ERR_FILE_CONTROLS[ERR_FILE_CONTROL_NOT_FOUND] = "TE03: No file transfer with the given file number was found for the given friend."}
const ERR_FILE_CONTROL_NOT_PAUSED = int(C.TOX_ERR_FILE_CONTROL_NOT_PAUSED) // 4
func init(){_ERR_FILE_CONTROLS[ERR_FILE_CONTROL_NOT_PAUSED] = "TE04: A RESUME control was sent, but the file transfer is running normally."}
const ERR_FILE_CONTROL_DENIED = int(C.TOX_ERR_FILE_CONTROL_DENIED) // 5
func init(){_ERR_FILE_CONTROLS[ERR_FILE_CONTROL_DENIED] = "TE05: A RESUME control was sent, but the file transfer was paused by the other party. Only the party that paused the transfer can resume it."}
const ERR_FILE_CONTROL_ALREADY_PAUSED = int(C.TOX_ERR_FILE_CONTROL_ALREADY_PAUSED) // 6
func init(){_ERR_FILE_CONTROLS[ERR_FILE_CONTROL_ALREADY_PAUSED] = "TE06: A PAUSE control was sent, but the file transfer was already paused."}
const ERR_FILE_CONTROL_SENDQ = int(C.TOX_ERR_FILE_CONTROL_SENDQ) // 7
func init(){_ERR_FILE_CONTROLS[ERR_FILE_CONTROL_SENDQ] = "TE07: Packet queue is full."}
var _ERR_FILE_SEEKS = make(map[int]string)
func init(){_ERR_FILE_SEEKS[-1] = "TE-1: _ERR_FILE_SEEK"}
const ERR_FILE_SEEK_OK = int(C.TOX_ERR_FILE_SEEK_OK) // 0
func init(){_ERR_FILE_SEEKS[ERR_FILE_SEEK_OK] = "TE00: The function returned successfully."}
const ERR_FILE_SEEK_FRIEND_NOT_FOUND = int(C.TOX_ERR_FILE_SEEK_FRIEND_NOT_FOUND) // 1
func init(){_ERR_FILE_SEEKS[ERR_FILE_SEEK_FRIEND_NOT_FOUND] = "TE01: The friend_number passed did not designate a valid friend."}
const ERR_FILE_SEEK_FRIEND_NOT_CONNECTED = int(C.TOX_ERR_FILE_SEEK_FRIEND_NOT_CONNECTED) // 2
func init(){_ERR_FILE_SEEKS[ERR_FILE_SEEK_FRIEND_NOT_CONNECTED] = "TE02: This client is currently not connected to the friend."}
const ERR_FILE_SEEK_NOT_FOUND = int(C.TOX_ERR_FILE_SEEK_NOT_FOUND) // 3
func init(){_ERR_FILE_SEEKS[ERR_FILE_SEEK_NOT_FOUND] = "TE03: No file transfer with the given file number was found for the given friend."}
const ERR_FILE_SEEK_DENIED = int(C.TOX_ERR_FILE_SEEK_DENIED) // 4
func init(){_ERR_FILE_SEEKS[ERR_FILE_SEEK_DENIED] = "TE04: File was not in a state where it could be seeked."}
const ERR_FILE_SEEK_INVALID_POSITION = int(C.TOX_ERR_FILE_SEEK_INVALID_POSITION) // 5
func init(){_ERR_FILE_SEEKS[ERR_FILE_SEEK_INVALID_POSITION] = "TE05: Seek position was invalid"}
const ERR_FILE_SEEK_SENDQ = int(C.TOX_ERR_FILE_SEEK_SENDQ) // 6
func init(){_ERR_FILE_SEEKS[ERR_FILE_SEEK_SENDQ] = "TE06: Packet queue is full."}
var _ERR_FILE_GETS = make(map[int]string)
func init(){_ERR_FILE_GETS[-1] = "TE-1: _ERR_FILE_GET"}
const ERR_FILE_GET_OK = int(C.TOX_ERR_FILE_GET_OK) // 0
func init(){_ERR_FILE_GETS[ERR_FILE_GET_OK] = "TE00: The function returned successfully."}
const ERR_FILE_GET_NULL = int(C.TOX_ERR_FILE_GET_NULL) // 1
func init(){_ERR_FILE_GETS[ERR_FILE_GET_NULL] = "TE01: One of the arguments to the function was NULL when it was not expected."}
const ERR_FILE_GET_FRIEND_NOT_FOUND = int(C.TOX_ERR_FILE_GET_FRIEND_NOT_FOUND) // 2
func init(){_ERR_FILE_GETS[ERR_FILE_GET_FRIEND_NOT_FOUND] = "TE02: The friend_number passed did not designate a valid friend."}
const ERR_FILE_GET_NOT_FOUND = int(C.TOX_ERR_FILE_GET_NOT_FOUND) // 3
func init(){_ERR_FILE_GETS[ERR_FILE_GET_NOT_FOUND] = "TE03: No file transfer with the given file number was found for the given friend."}
var _ERR_FILE_SENDS = make(map[int]string)
func init(){_ERR_FILE_SENDS[-1] = "TE-1: _ERR_FILE_SEND"}
const ERR_FILE_SEND_OK = int(C.TOX_ERR_FILE_SEND_OK) // 0
func init(){_ERR_FILE_SENDS[ERR_FILE_SEND_OK] = "TE00: The function returned successfully."}
const ERR_FILE_SEND_NULL = int(C.TOX_ERR_FILE_SEND_NULL) // 1
func init(){_ERR_FILE_SENDS[ERR_FILE_SEND_NULL] = "TE01: One of the arguments to the function was NULL when it was not expected."}
const ERR_FILE_SEND_FRIEND_NOT_FOUND = int(C.TOX_ERR_FILE_SEND_FRIEND_NOT_FOUND) // 2
func init(){_ERR_FILE_SENDS[ERR_FILE_SEND_FRIEND_NOT_FOUND] = "TE02: The friend_number passed did not designate a valid friend."}
const ERR_FILE_SEND_FRIEND_NOT_CONNECTED = int(C.TOX_ERR_FILE_SEND_FRIEND_NOT_CONNECTED) // 3
func init(){_ERR_FILE_SENDS[ERR_FILE_SEND_FRIEND_NOT_CONNECTED] = "TE03: This client is currently not connected to the friend."}
const ERR_FILE_SEND_NAME_TOO_LONG = int(C.TOX_ERR_FILE_SEND_NAME_TOO_LONG) // 4
func init(){_ERR_FILE_SENDS[ERR_FILE_SEND_NAME_TOO_LONG] = "TE04: Filename length exceeded TOX_MAX_FILENAME_LENGTH bytes."}
const ERR_FILE_SEND_TOO_MANY = int(C.TOX_ERR_FILE_SEND_TOO_MANY) // 5
func init(){_ERR_FILE_SENDS[ERR_FILE_SEND_TOO_MANY] = "TE05: Too many ongoing transfers. The maximum number of concurrent file transfers is 256 per friend per direction (sending and receiving)."}
var _ERR_FILE_SEND_CHUNKS = make(map[int]string)
func init(){_ERR_FILE_SEND_CHUNKS[-1] = "TE-1: _ERR_FILE_SEND_CHUNK"}
const ERR_FILE_SEND_CHUNK_OK = int(C.TOX_ERR_FILE_SEND_CHUNK_OK) // 0
func init(){_ERR_FILE_SEND_CHUNKS[ERR_FILE_SEND_CHUNK_OK] = "TE00: The function returned successfully."}
const ERR_FILE_SEND_CHUNK_NULL = int(C.TOX_ERR_FILE_SEND_CHUNK_NULL) // 1
func init(){_ERR_FILE_SEND_CHUNKS[ERR_FILE_SEND_CHUNK_NULL] = "TE01: The length parameter was non-zero, but data was NULL."}
const ERR_FILE_SEND_CHUNK_FRIEND_NOT_FOUND = int(C.TOX_ERR_FILE_SEND_CHUNK_FRIEND_NOT_FOUND) // 2
func init(){_ERR_FILE_SEND_CHUNKS[ERR_FILE_SEND_CHUNK_FRIEND_NOT_FOUND] = "TE02: The friend_number passed did not designate a valid friend."}
const ERR_FILE_SEND_CHUNK_FRIEND_NOT_CONNECTED = int(C.TOX_ERR_FILE_SEND_CHUNK_FRIEND_NOT_CONNECTED) // 3
func init(){_ERR_FILE_SEND_CHUNKS[ERR_FILE_SEND_CHUNK_FRIEND_NOT_CONNECTED] = "TE03: This client is currently not connected to the friend."}
const ERR_FILE_SEND_CHUNK_NOT_FOUND = int(C.TOX_ERR_FILE_SEND_CHUNK_NOT_FOUND) // 4
func init(){_ERR_FILE_SEND_CHUNKS[ERR_FILE_SEND_CHUNK_NOT_FOUND] = "TE04: No file transfer with the given file number was found for the given friend."}
const ERR_FILE_SEND_CHUNK_NOT_TRANSFERRING = int(C.TOX_ERR_FILE_SEND_CHUNK_NOT_TRANSFERRING) // 5
func init(){_ERR_FILE_SEND_CHUNKS[ERR_FILE_SEND_CHUNK_NOT_TRANSFERRING] = "TE05: File transfer was found but isn't in a transferring state: (paused, done, broken, etc...) (happens only when not called from the request chunk callback)."}
const ERR_FILE_SEND_CHUNK_INVALID_LENGTH = int(C.TOX_ERR_FILE_SEND_CHUNK_INVALID_LENGTH) // 6
func init(){_ERR_FILE_SEND_CHUNKS[ERR_FILE_SEND_CHUNK_INVALID_LENGTH] = "TE06: Attempted to send more or less data than requested. The requested data size is adjusted according to maximum transmission unit and the expected end of the file. Trying to send less or more than requested will return this error."}
const ERR_FILE_SEND_CHUNK_SENDQ = int(C.TOX_ERR_FILE_SEND_CHUNK_SENDQ) // 7
func init(){_ERR_FILE_SEND_CHUNKS[ERR_FILE_SEND_CHUNK_SENDQ] = "TE07: Packet queue is full."}
const ERR_FILE_SEND_CHUNK_WRONG_POSITION = int(C.TOX_ERR_FILE_SEND_CHUNK_WRONG_POSITION) // 8
func init(){_ERR_FILE_SEND_CHUNKS[ERR_FILE_SEND_CHUNK_WRONG_POSITION] = "TE08: Position parameter was wrong."}
var _ERR_CONFERENCE_NEWS = make(map[int]string)
func init(){_ERR_CONFERENCE_NEWS[-1] = "TE-1: _ERR_CONFERENCE_NEW"}
const ERR_CONFERENCE_NEW_OK = int(C.TOX_ERR_CONFERENCE_NEW_OK) // 0
func init(){_ERR_CONFERENCE_NEWS[ERR_CONFERENCE_NEW_OK] = "TE00: The function returned successfully."}
const ERR_CONFERENCE_NEW_INIT = int(C.TOX_ERR_CONFERENCE_NEW_INIT) // 1
func init(){_ERR_CONFERENCE_NEWS[ERR_CONFERENCE_NEW_INIT] = "TE01: The conference instance failed to initialize."}
var _ERR_CONFERENCE_DELETES = make(map[int]string)
func init(){_ERR_CONFERENCE_DELETES[-1] = "TE-1: _ERR_CONFERENCE_DELETE"}
const ERR_CONFERENCE_DELETE_OK = int(C.TOX_ERR_CONFERENCE_DELETE_OK) // 0
func init(){_ERR_CONFERENCE_DELETES[ERR_CONFERENCE_DELETE_OK] = "TE00: The function returned successfully."}
const ERR_CONFERENCE_DELETE_CONFERENCE_NOT_FOUND = int(C.TOX_ERR_CONFERENCE_DELETE_CONFERENCE_NOT_FOUND) // 1
func init(){_ERR_CONFERENCE_DELETES[ERR_CONFERENCE_DELETE_CONFERENCE_NOT_FOUND] = "TE01: The conference number passed did not designate a valid conference."}
var _ERR_CONFERENCE_PEER_QUERYS = make(map[int]string)
func init(){_ERR_CONFERENCE_PEER_QUERYS[-1] = "TE-1: _ERR_CONFERENCE_PEER_QUERY"}
const ERR_CONFERENCE_PEER_QUERY_OK = int(C.TOX_ERR_CONFERENCE_PEER_QUERY_OK) // 0
func init(){_ERR_CONFERENCE_PEER_QUERYS[ERR_CONFERENCE_PEER_QUERY_OK] = "TE00: The function returned successfully."}
const ERR_CONFERENCE_PEER_QUERY_CONFERENCE_NOT_FOUND = int(C.TOX_ERR_CONFERENCE_PEER_QUERY_CONFERENCE_NOT_FOUND) // 1
func init(){_ERR_CONFERENCE_PEER_QUERYS[ERR_CONFERENCE_PEER_QUERY_CONFERENCE_NOT_FOUND] = "TE01: The conference number passed did not designate a valid conference."}
const ERR_CONFERENCE_PEER_QUERY_PEER_NOT_FOUND = int(C.TOX_ERR_CONFERENCE_PEER_QUERY_PEER_NOT_FOUND) // 2
func init(){_ERR_CONFERENCE_PEER_QUERYS[ERR_CONFERENCE_PEER_QUERY_PEER_NOT_FOUND] = "TE02: The peer number passed did not designate a valid peer."}
const ERR_CONFERENCE_PEER_QUERY_NO_CONNECTION = int(C.TOX_ERR_CONFERENCE_PEER_QUERY_NO_CONNECTION) // 3
func init(){_ERR_CONFERENCE_PEER_QUERYS[ERR_CONFERENCE_PEER_QUERY_NO_CONNECTION] = "TE03: The client is not connected to the conference."}
var _ERR_CONFERENCE_INVITES = make(map[int]string)
func init(){_ERR_CONFERENCE_INVITES[-1] = "TE-1: _ERR_CONFERENCE_INVITE"}
const ERR_CONFERENCE_INVITE_OK = int(C.TOX_ERR_CONFERENCE_INVITE_OK) // 0
func init(){_ERR_CONFERENCE_INVITES[ERR_CONFERENCE_INVITE_OK] = "TE00: The function returned successfully."}
const ERR_CONFERENCE_INVITE_CONFERENCE_NOT_FOUND = int(C.TOX_ERR_CONFERENCE_INVITE_CONFERENCE_NOT_FOUND) // 1
func init(){_ERR_CONFERENCE_INVITES[ERR_CONFERENCE_INVITE_CONFERENCE_NOT_FOUND] = "TE01: The conference number passed did not designate a valid conference."}
const ERR_CONFERENCE_INVITE_FAIL_SEND = int(C.TOX_ERR_CONFERENCE_INVITE_FAIL_SEND) // 2
func init(){_ERR_CONFERENCE_INVITES[ERR_CONFERENCE_INVITE_FAIL_SEND] = "TE02: The invite packet failed to send."}
const ERR_CONFERENCE_INVITE_NO_CONNECTION = int(C.TOX_ERR_CONFERENCE_INVITE_NO_CONNECTION) // 3
func init(){_ERR_CONFERENCE_INVITES[ERR_CONFERENCE_INVITE_NO_CONNECTION] = "TE03: The client is not connected to the conference."}
var _ERR_CONFERENCE_JOINS = make(map[int]string)
func init(){_ERR_CONFERENCE_JOINS[-1] = "TE-1: _ERR_CONFERENCE_JOIN"}
const ERR_CONFERENCE_JOIN_OK = int(C.TOX_ERR_CONFERENCE_JOIN_OK) // 0
func init(){_ERR_CONFERENCE_JOINS[ERR_CONFERENCE_JOIN_OK] = "TE00: The function returned successfully."}
const ERR_CONFERENCE_JOIN_INVALID_LENGTH = int(C.TOX_ERR_CONFERENCE_JOIN_INVALID_LENGTH) // 1
func init(){_ERR_CONFERENCE_JOINS[ERR_CONFERENCE_JOIN_INVALID_LENGTH] = "TE01: The cookie passed has an invalid length."}
const ERR_CONFERENCE_JOIN_WRONG_TYPE = int(C.TOX_ERR_CONFERENCE_JOIN_WRONG_TYPE) // 2
func init(){_ERR_CONFERENCE_JOINS[ERR_CONFERENCE_JOIN_WRONG_TYPE] = "TE02: The conference is not the expected type. This indicates an invalid cookie."}
const ERR_CONFERENCE_JOIN_FRIEND_NOT_FOUND = int(C.TOX_ERR_CONFERENCE_JOIN_FRIEND_NOT_FOUND) // 3
func init(){_ERR_CONFERENCE_JOINS[ERR_CONFERENCE_JOIN_FRIEND_NOT_FOUND] = "TE03: The friend number passed does not designate a valid friend."}
const ERR_CONFERENCE_JOIN_DUPLICATE = int(C.TOX_ERR_CONFERENCE_JOIN_DUPLICATE) // 4
func init(){_ERR_CONFERENCE_JOINS[ERR_CONFERENCE_JOIN_DUPLICATE] = "TE04: Client is already in this conference."}
const ERR_CONFERENCE_JOIN_INIT_FAIL = int(C.TOX_ERR_CONFERENCE_JOIN_INIT_FAIL) // 5
func init(){_ERR_CONFERENCE_JOINS[ERR_CONFERENCE_JOIN_INIT_FAIL] = "TE05: Conference instance failed to initialize."}
const ERR_CONFERENCE_JOIN_FAIL_SEND = int(C.TOX_ERR_CONFERENCE_JOIN_FAIL_SEND) // 6
func init(){_ERR_CONFERENCE_JOINS[ERR_CONFERENCE_JOIN_FAIL_SEND] = "TE06: The join packet failed to send."}
var _ERR_CONFERENCE_SEND_MESSAGES = make(map[int]string)
func init(){_ERR_CONFERENCE_SEND_MESSAGES[-1] = "TE-1: _ERR_CONFERENCE_SEND_MESSAGE"}
const ERR_CONFERENCE_SEND_MESSAGE_OK = int(C.TOX_ERR_CONFERENCE_SEND_MESSAGE_OK) // 0
func init(){_ERR_CONFERENCE_SEND_MESSAGES[ERR_CONFERENCE_SEND_MESSAGE_OK] = "TE00: The function returned successfully."}
const ERR_CONFERENCE_SEND_MESSAGE_CONFERENCE_NOT_FOUND = int(C.TOX_ERR_CONFERENCE_SEND_MESSAGE_CONFERENCE_NOT_FOUND) // 1
func init(){_ERR_CONFERENCE_SEND_MESSAGES[ERR_CONFERENCE_SEND_MESSAGE_CONFERENCE_NOT_FOUND] = "TE01: The conference number passed did not designate a valid conference."}
const ERR_CONFERENCE_SEND_MESSAGE_TOO_LONG = int(C.TOX_ERR_CONFERENCE_SEND_MESSAGE_TOO_LONG) // 2
func init(){_ERR_CONFERENCE_SEND_MESSAGES[ERR_CONFERENCE_SEND_MESSAGE_TOO_LONG] = "TE02: The message is too long."}
const ERR_CONFERENCE_SEND_MESSAGE_NO_CONNECTION = int(C.TOX_ERR_CONFERENCE_SEND_MESSAGE_NO_CONNECTION) // 3
func init(){_ERR_CONFERENCE_SEND_MESSAGES[ERR_CONFERENCE_SEND_MESSAGE_NO_CONNECTION] = "TE03: The client is not connected to the conference."}
const ERR_CONFERENCE_SEND_MESSAGE_FAIL_SEND = int(C.TOX_ERR_CONFERENCE_SEND_MESSAGE_FAIL_SEND) // 4
func init(){_ERR_CONFERENCE_SEND_MESSAGES[ERR_CONFERENCE_SEND_MESSAGE_FAIL_SEND] = "TE04: The message packet failed to send."}
var _ERR_CONFERENCE_TITLES = make(map[int]string)
func init(){_ERR_CONFERENCE_TITLES[-1] = "TE-1: _ERR_CONFERENCE_TITLE"}
const ERR_CONFERENCE_TITLE_OK = int(C.TOX_ERR_CONFERENCE_TITLE_OK) // 0
func init(){_ERR_CONFERENCE_TITLES[ERR_CONFERENCE_TITLE_OK] = "TE00: The function returned successfully."}
const ERR_CONFERENCE_TITLE_CONFERENCE_NOT_FOUND = int(C.TOX_ERR_CONFERENCE_TITLE_CONFERENCE_NOT_FOUND) // 1
func init(){_ERR_CONFERENCE_TITLES[ERR_CONFERENCE_TITLE_CONFERENCE_NOT_FOUND] = "TE01: The conference number passed did not designate a valid conference."}
const ERR_CONFERENCE_TITLE_INVALID_LENGTH = int(C.TOX_ERR_CONFERENCE_TITLE_INVALID_LENGTH) // 2
func init(){_ERR_CONFERENCE_TITLES[ERR_CONFERENCE_TITLE_INVALID_LENGTH] = "TE02: The title is too long or empty."}
const ERR_CONFERENCE_TITLE_FAIL_SEND = int(C.TOX_ERR_CONFERENCE_TITLE_FAIL_SEND) // 3
func init(){_ERR_CONFERENCE_TITLES[ERR_CONFERENCE_TITLE_FAIL_SEND] = "TE03: The title packet failed to send."}
var _ERR_CONFERENCE_GET_TYPES = make(map[int]string)
func init(){_ERR_CONFERENCE_GET_TYPES[-1] = "TE-1: _ERR_CONFERENCE_GET_TYPE"}
const ERR_CONFERENCE_GET_TYPE_OK = int(C.TOX_ERR_CONFERENCE_GET_TYPE_OK) // 0
func init(){_ERR_CONFERENCE_GET_TYPES[ERR_CONFERENCE_GET_TYPE_OK] = "TE00: The function returned successfully."}
const ERR_CONFERENCE_GET_TYPE_CONFERENCE_NOT_FOUND = int(C.TOX_ERR_CONFERENCE_GET_TYPE_CONFERENCE_NOT_FOUND) // 1
func init(){_ERR_CONFERENCE_GET_TYPES[ERR_CONFERENCE_GET_TYPE_CONFERENCE_NOT_FOUND] = "TE01: The conference number passed did not designate a valid conference."}
var _ERR_CONFERENCE_BY_IDS = make(map[int]string)
func init(){_ERR_CONFERENCE_BY_IDS[-1] = "TE-1: _ERR_CONFERENCE_BY_ID"}
const ERR_CONFERENCE_BY_ID_OK = int(C.TOX_ERR_CONFERENCE_BY_ID_OK) // 0
func init(){_ERR_CONFERENCE_BY_IDS[ERR_CONFERENCE_BY_ID_OK] = "TE00: The function returned successfully."}
const ERR_CONFERENCE_BY_ID_NULL = int(C.TOX_ERR_CONFERENCE_BY_ID_NULL) // 1
func init(){_ERR_CONFERENCE_BY_IDS[ERR_CONFERENCE_BY_ID_NULL] = "TE01: One of the arguments to the function was NULL when it was not expected."}
const ERR_CONFERENCE_BY_ID_NOT_FOUND = int(C.TOX_ERR_CONFERENCE_BY_ID_NOT_FOUND) // 2
func init(){_ERR_CONFERENCE_BY_IDS[ERR_CONFERENCE_BY_ID_NOT_FOUND] = "TE02: No conference with the given id exists on the conference list."}
var _ERR_CONFERENCE_BY_UIDS = make(map[int]string)
func init(){_ERR_CONFERENCE_BY_UIDS[-1] = "TE-1: _ERR_CONFERENCE_BY_UID"}
const ERR_CONFERENCE_BY_UID_OK = int(C.TOX_ERR_CONFERENCE_BY_UID_OK) // 0
func init(){_ERR_CONFERENCE_BY_UIDS[ERR_CONFERENCE_BY_UID_OK] = "TE00: The function returned successfully."}
const ERR_CONFERENCE_BY_UID_NULL = int(C.TOX_ERR_CONFERENCE_BY_UID_NULL) // 1
func init(){_ERR_CONFERENCE_BY_UIDS[ERR_CONFERENCE_BY_UID_NULL] = "TE01: One of the arguments to the function was NULL when it was not expected."}
const ERR_CONFERENCE_BY_UID_NOT_FOUND = int(C.TOX_ERR_CONFERENCE_BY_UID_NOT_FOUND) // 2
func init(){_ERR_CONFERENCE_BY_UIDS[ERR_CONFERENCE_BY_UID_NOT_FOUND] = "TE02: No conference with the given uid exists on the conference list."}
var _ERR_FRIEND_CUSTOM_PACKETS = make(map[int]string)
func init(){_ERR_FRIEND_CUSTOM_PACKETS[-1] = "TE-1: _ERR_FRIEND_CUSTOM_PACKET"}
const ERR_FRIEND_CUSTOM_PACKET_OK = int(C.TOX_ERR_FRIEND_CUSTOM_PACKET_OK) // 0
func init(){_ERR_FRIEND_CUSTOM_PACKETS[ERR_FRIEND_CUSTOM_PACKET_OK] = "TE00: The function returned successfully."}
const ERR_FRIEND_CUSTOM_PACKET_NULL = int(C.TOX_ERR_FRIEND_CUSTOM_PACKET_NULL) // 1
func init(){_ERR_FRIEND_CUSTOM_PACKETS[ERR_FRIEND_CUSTOM_PACKET_NULL] = "TE01: One of the arguments to the function was NULL when it was not expected."}
const ERR_FRIEND_CUSTOM_PACKET_FRIEND_NOT_FOUND = int(C.TOX_ERR_FRIEND_CUSTOM_PACKET_FRIEND_NOT_FOUND) // 2
func init(){_ERR_FRIEND_CUSTOM_PACKETS[ERR_FRIEND_CUSTOM_PACKET_FRIEND_NOT_FOUND] = "TE02: The friend number did not designate a valid friend."}
const ERR_FRIEND_CUSTOM_PACKET_FRIEND_NOT_CONNECTED = int(C.TOX_ERR_FRIEND_CUSTOM_PACKET_FRIEND_NOT_CONNECTED) // 3
func init(){_ERR_FRIEND_CUSTOM_PACKETS[ERR_FRIEND_CUSTOM_PACKET_FRIEND_NOT_CONNECTED] = "TE03: This client is currently not connected to the friend."}
const ERR_FRIEND_CUSTOM_PACKET_INVALID = int(C.TOX_ERR_FRIEND_CUSTOM_PACKET_INVALID) // 4
func init(){_ERR_FRIEND_CUSTOM_PACKETS[ERR_FRIEND_CUSTOM_PACKET_INVALID] = "TE04: The first byte of data was not in the specified range for the packet type. This range is 200-254 for lossy, and 160-191 for lossless packets."}
const ERR_FRIEND_CUSTOM_PACKET_EMPTY = int(C.TOX_ERR_FRIEND_CUSTOM_PACKET_EMPTY) // 5
func init(){_ERR_FRIEND_CUSTOM_PACKETS[ERR_FRIEND_CUSTOM_PACKET_EMPTY] = "TE05: Attempted to send an empty packet."}
const ERR_FRIEND_CUSTOM_PACKET_TOO_LONG = int(C.TOX_ERR_FRIEND_CUSTOM_PACKET_TOO_LONG) // 6
func init(){_ERR_FRIEND_CUSTOM_PACKETS[ERR_FRIEND_CUSTOM_PACKET_TOO_LONG] = "TE06: Packet data length exceeded TOX_MAX_CUSTOM_PACKET_SIZE."}
const ERR_FRIEND_CUSTOM_PACKET_SENDQ = int(C.TOX_ERR_FRIEND_CUSTOM_PACKET_SENDQ) // 7
func init(){_ERR_FRIEND_CUSTOM_PACKETS[ERR_FRIEND_CUSTOM_PACKET_SENDQ] = "TE07: Packet queue is full."}
var _ERR_GET_PORTS = make(map[int]string)
func init(){_ERR_GET_PORTS[-1] = "TE-1: _ERR_GET_PORT"}
const ERR_GET_PORT_OK = int(C.TOX_ERR_GET_PORT_OK) // 0
func init(){_ERR_GET_PORTS[ERR_GET_PORT_OK] = "TE00: The function returned successfully."}
const ERR_GET_PORT_NOT_BOUND = int(C.TOX_ERR_GET_PORT_NOT_BOUND) // 1
func init(){_ERR_GET_PORTS[ERR_GET_PORT_NOT_BOUND] = "TE01: The instance was not bound to any port."}