Concord - C Discord API library
A Discord API wrapper library written in C
voice_connections.h
Go to the documentation of this file.
1
6#ifndef API_VOICE_CONNECTIONS_H
7#define API_VOICE_CONNECTIONS_H
8/* Allow symbols usage without GENCODECS_ prefix */
9#include <stddef.h>
10#include <stdbool.h>
11#include <inttypes.h>
12#include "carray.h"
13#include "cog-utils.h"
14#include "types.h"
15/* Custom JSON encoding macros */
16/* Custom JSON decoding macros */
17/* Custom field macros */
18/* if GENCODECS_READ is not specified then generate for all files */
19/*****************************************************************************
20 * Voice Connections Datatypes
21 * **************************************************************************/
26#define DISCORD_VOICE_MICROPHONE 1 << 0
28#define DISCORD_VOICE_SOUNDSHARE 1 << 1
30#define DISCORD_VOICE_PRIORITY 1 << 2
58};
83};
84#include <stddef.h>
85#include <stdbool.h>
86#define JSMN_STRICT
87#define JSMN_HEADER
88#include "jsmn.h"
89#include "jsmn-find.h"
90#define JSONB_HEADER
91#include "json-build.h"
92#include <inttypes.h>
93#include "carray.h"
94#include "cog-utils.h"
95#include "types.h"
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#endif /* API_VOICE_CONNECTIONS_H */
discord_voice_opcodes
Definition: voice_connections.h:59
@ DISCORD_VOICE_SPEAKING
Definition: voice_connections.h:71
@ DISCORD_VOICE_CLIENT_DISCONNECT
Definition: voice_connections.h:81
@ DISCORD_VOICE_HELLO
Definition: voice_connections.h:77
@ DISCORD_VOICE_SESSION_DESCRIPTION
Definition: voice_connections.h:69
@ DISCORD_VOICE_RESUME
Definition: voice_connections.h:75
@ DISCORD_VOICE_HEARTBEAT_ACK
Definition: voice_connections.h:73
@ DISCORD_VOICE_CODEC
Definition: voice_connections.h:82
@ DISCORD_VOICE_READY
Definition: voice_connections.h:65
@ DISCORD_VOICE_RESUMED
Definition: voice_connections.h:79
@ DISCORD_VOICE_IDENTIFY
Definition: voice_connections.h:61
@ DISCORD_VOICE_HEARTBEAT
Definition: voice_connections.h:67
@ DISCORD_VOICE_SELECT_PROTOCOL
Definition: voice_connections.h:63
discord_voice_close_opcodes
Definition: voice_connections.h:32
@ DISCORD_VOICE_CLOSE_REASON_UNKNOWN_ENCRYPTION_MODE
Definition: voice_connections.h:57
@ DISCORD_VOICE_CLOSE_REASON_NOT_AUTHENTICATED
Definition: voice_connections.h:38
@ DISCORD_VOICE_CLOSE_REASON_UNKNOWN_OPCODE
Definition: voice_connections.h:34
@ DISCORD_VOICE_CLOSE_REASON_SERVER_CRASH
Definition: voice_connections.h:55
@ DISCORD_VOICE_CLOSE_REASON_DECODE_ERROR
Definition: voice_connections.h:36
@ DISCORD_VOICE_CLOSE_REASON_AUTHENTICATION_FAILED
Definition: voice_connections.h:40
@ DISCORD_VOICE_CLOSE_REASON_SESSION_TIMED_OUT
Definition: voice_connections.h:46
@ DISCORD_VOICE_CLOSE_REASON_ALREADY_AUTHENTICATED
Definition: voice_connections.h:42
@ DISCORD_VOICE_CLOSE_REASON_INVALID_SESSION
Definition: voice_connections.h:44
@ DISCORD_VOICE_CLOSE_REASON_SERVER_NOT_FOUND
Definition: voice_connections.h:48
@ DISCORD_VOICE_CLOSE_REASON_UNKNOWN_PROTOCOL
Definition: voice_connections.h:50
@ DISCORD_VOICE_CLOSE_REASON_DISCONNECTED
Definition: voice_connections.h:53