Concord - C Discord API library
A Discord API wrapper library written in C
discord_gateway_payload Struct Reference

The handle for storing the Discord response payload. More...

#include <discord-internal.h>

Collaboration diagram for discord_gateway_payload:
[legend]

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
 

Detailed Description

The handle for storing the Discord response payload.

Field Documentation

◆ start

char* discord_gateway_payload::start

the JSON text

◆ size

size_t discord_gateway_payload::size

the text length

◆ tokens

jsmntok_t* discord_gateway_payload::tokens

jsmn tokens

◆ ntokens

unsigned discord_gateway_payload::ntokens

amount of jsmn tokens

◆ pairs

jsmnf_pair* discord_gateway_payload::pairs

jsmn-find key/value pairs

◆ npairs

unsigned discord_gateway_payload::npairs

amount of jsmn-find key/value pairs

◆ 

struct { ... } discord_gateway_payload::json

current iteration JSON

◆ opcode

enum discord_gateway_opcodes discord_gateway_payload::opcode

field 'op'

◆ seq

int discord_gateway_payload::seq

field 's'

◆ name

char discord_gateway_payload::name[32]

field 't'

◆ event

enum discord_gateway_events discord_gateway_payload::event

field 't' enumerator value

◆ data

jsmnf_pair* discord_gateway_payload::data

field 'd'


The documentation for this struct was generated from the following file: