forked from xbee/go-toxcore
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathconst.go
77 lines (61 loc) · 2.13 KB
/
const.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
package tox
/*
#include <tox/tox.h>
#include <tox/toxav.h>
*/
import "C"
const (
PUBLIC_KEY_SIZE = int(C.TOX_PUBLIC_KEY_SIZE)
SECRET_KEY_SIZE = int(C.TOX_SECRET_KEY_SIZE)
ADDRESS_SIZE = int(C.TOX_ADDRESS_SIZE)
MAX_NAME_LENGTH = int(C.TOX_MAX_NAME_LENGTH)
MAX_STATUS_MESSAGE_LENGTH = int(C.TOX_MAX_STATUS_MESSAGE_LENGTH)
MAX_FRIEND_REQUEST_LENGTH = int(C.TOX_MAX_FRIEND_REQUEST_LENGTH)
MAX_MESSAGE_LENGTH = int(C.TOX_MAX_MESSAGE_LENGTH)
MAX_CUSTOM_PACKET_SIZE = int(C.TOX_MAX_CUSTOM_PACKET_SIZE)
HASH_LENGTH = int(C.TOX_HASH_LENGTH)
FILE_ID_LENGTH = int(C.TOX_FILE_ID_LENGTH)
MAX_FILENAME_LENGTH = int(C.TOX_MAX_FILENAME_LENGTH)
)
type UserStatus int
const (
USER_STATUS_NONE = int(C.TOX_USER_STATUS_NONE)
USER_STATUS_AWAY = int(C.TOX_USER_STATUS_AWAY)
USER_STATUS_BUSY = int(C.TOX_USER_STATUS_BUSY)
)
type ConnectionType int
const (
CONNECTION_NONE = int(C.TOX_CONNECTION_NONE)
CONNECTION_TCP = int(C.TOX_CONNECTION_TCP)
CONNECTION_UDP = int(C.TOX_CONNECTION_UDP)
)
type FileControlType int
const (
FILE_CONTROL_RESUME = int(C.TOX_FILE_CONTROL_RESUME)
FILE_CONTROL_PAUSE = int(C.TOX_FILE_CONTROL_PAUSE)
FILE_CONTROL_CANCEL = int(C.TOX_FILE_CONTROL_CANCEL)
)
type FileKind uint32
const (
FILE_KIND_DATA = uint32(C.TOX_FILE_KIND_DATA)
FILE_KIND_AVATAR = uint32(C.TOX_FILE_KIND_AVATAR)
)
type GroupchatType int
const (
CONFERENCE_TYPE_TEXT = uint8(C.TOX_CONFERENCE_TYPE_TEXT)
CONFERENCE_TYPE_AV = uint8(C.TOX_CONFERENCE_TYPE_AV)
)
type CallControlType int
const (
FRIEND_CALL_STATE_ERROR = int(C.TOXAV_FRIEND_CALL_STATE_ERROR)
FRIEND_CALL_STATE_FINISHED = int(C.TOXAV_FRIEND_CALL_STATE_FINISHED)
FRIEND_CALL_STATE_SENDING_A = int(C.TOXAV_FRIEND_CALL_STATE_SENDING_A)
FRIEND_CALL_STATE_SENDING_V = int(C.TOXAV_FRIEND_CALL_STATE_SENDING_V)
FRIEND_CALL_STATE_ACCEPTING_A = int(C.TOXAV_FRIEND_CALL_STATE_ACCEPTING_A)
FRIEND_CALL_STATE_ACCEPTING_V = int(C.TOXAV_FRIEND_CALL_STATE_ACCEPTING_V)
)
type MessageType int
const (
MESSAGE_TYPE_NORMAL = int(C.TOX_MESSAGE_TYPE_NORMAL)
MESSAGE_TYPE_ACTION = int(C.TOX_MESSAGE_TYPE_ACTION)
)