Concord - C Discord API library
A Discord API wrapper library written in C
|
The handle for storing the Discord response payload. More...
#include <discord-internal.h>
Data Fields | |
struct { | |
char * start | |
size_t size | |
jsmntok_t * tokens | |
unsigned ntokens | |
jsmnf_pair * pairs | |
unsigned npairs | |
} | json |
enum discord_gateway_opcodes | opcode |
int | seq |
char | name [32] |
enum discord_gateway_events | event |
jsmnf_pair * | data |
The handle for storing the Discord response payload.
char* discord_gateway_payload::start |
the JSON text
size_t discord_gateway_payload::size |
the text length
jsmntok_t* discord_gateway_payload::tokens |
jsmn tokens
unsigned discord_gateway_payload::ntokens |
amount of jsmn tokens
jsmnf_pair* discord_gateway_payload::pairs |
jsmn-find key/value pairs
unsigned discord_gateway_payload::npairs |
amount of jsmn-find key/value pairs
struct { ... } discord_gateway_payload::json |
current iteration JSON
enum discord_gateway_opcodes discord_gateway_payload::opcode |
field 'op'
int discord_gateway_payload::seq |
field 's'
char discord_gateway_payload::name[32] |
field 't'
enum discord_gateway_events discord_gateway_payload::event |
field 't' enumerator value
jsmnf_pair* discord_gateway_payload::data |
field 'd'