Concord - C Discord API library
A Discord API wrapper library written in C
permissions.h File Reference

Generated code. More...

#include <stddef.h>
#include <stdbool.h>
#include <inttypes.h>
#include "carray.h"
#include "cog-utils.h"
#include "types.h"
#include "jsmn.h"
#include "jsmn-find.h"
#include "json-build.h"
Include dependency graph for permissions.h:

Go to the source code of this file.

Data Structures

struct  discord_role
 
struct  discord_roles
 
struct  discord_role_tag
 

Macros

#define DISCORD_PERM_CREATE_INSTANT_INVITE   1 << 0
 
#define DISCORD_PERM_KICK_MEMBERS   1 << 1
 
#define DISCORD_PERM_BAN_MEMBERS   1 << 2
 
#define DISCORD_PERM_ADMINISTRATOR   1 << 3
 
#define DISCORD_PERM_MANAGE_CHANNELS   1 << 4
 
#define DISCORD_PERM_MANAGE_GUILD   1 << 5
 
#define DISCORD_PERM_ADD_REACTIONS   1 << 6
 
#define DISCORD_PERM_VIEW_AUDIT_LOG   1 << 7
 
#define DISCORD_PERM_PRIORITY_SPEAKER   1 << 8
 
#define DISCORD_PERM_STREAM   1 << 9
 
#define DISCORD_PERM_VIEW_CHANNEL   1 << 10
 
#define DISCORD_PERM_SEND_MESSAGES   1 << 11
 
#define DISCORD_PERM_SEND_TTS_MESSAGES   1 << 12
 
#define DISCORD_PERM_MANAGE_MESSAGES   1 << 13
 
#define DISCORD_PERM_EMBED_LINKS   1 << 14
 
#define DISCORD_PERM_ATTACH_FILES   1 << 15
 
#define DISCORD_PERM_READ_MESSAGE_HISTORY   1 << 16
 
#define DISCORD_PERM_MENTION_EVERYONE   1 << 17
 
#define DISCORD_PERM_USE_EXTERNAL_EMOJIS   1 << 18
 
#define DISCORD_PERM_VIEW_GUILD_INSIGHTS   1 << 19
 
#define DISCORD_PERM_CONNECT   1 << 20
 
#define DISCORD_PERM_SPEAK   1 << 21
 
#define DISCORD_PERM_MUTE_MEMBERS   1 << 22
 
#define DISCORD_PERM_DEAFEN_MEMBERS   1 << 23
 
#define DISCORD_PERM_MOVE_MEMBERS   1 << 24
 
#define DISCORD_PERM_USE_VAD   1 << 25
 
#define DISCORD_PERM_CHANGE_NICKNAME   1 << 26
 
#define DISCORD_PERM_MANAGE_NICKNAMES   1 << 27
 
#define DISCORD_PERM_MANAGE_ROLES   1 << 28
 
#define DISCORD_PERM_MANAGE_WEBHOOKS   1 << 29
 
#define DISCORD_PERM_MANAGE_EMOJIS_AND_STICKERS   1 << 30
 
#define DISCORD_PERM_USE_APPLICATION_COMMANDS   1 << 31
 
#define DISCORD_PERM_REQUEST_TO_SPEAK   1 << 32
 
#define DISCORD_PERM_MANAGE_EVENTS   1 << 33
 
#define DISCORD_PERM_MANAGE_THREADS   1 << 34
 
#define DISCORD_PERM_CREATE_PUBLIC_THREADS   1 << 35
 
#define DISCORD_PERM_CREATE_PRIVATE_THREADS   1 << 36
 
#define DISCORD_PERM_USE_EXTERNAL_STICKERS   1 << 37
 
#define DISCORD_PERM_SEND_MESSAGES_IN_THREADS   1 << 38
 
#define DISCORD_PERM_START_EMBEDDED_ACTIVITIES   1 << 39
 
#define DISCORD_PERM_MODERATE_MEMBERS   1 << 40
 
#define JSMN_STRICT
 
#define JSMN_HEADER
 
#define JSONB_HEADER
 

Functions

void discord_role_init (struct discord_role *self)
 
void discord_role_cleanup (struct discord_role *self)
 
void discord_roles_cleanup (struct discord_roles *self)
 
long discord_role_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_role *self)
 
size_t discord_role_from_json (const char buf[], size_t size, struct discord_role *self)
 
long discord_roles_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_roles *self)
 
size_t discord_roles_from_json (const char buf[], size_t size, struct discord_roles *self)
 
jsonbcode discord_role_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_role *self)
 
size_t discord_role_to_json (char buf[], size_t size, const struct discord_role *self)
 
jsonbcode discord_roles_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_roles *self)
 
size_t discord_roles_to_json (char buf[], size_t size, const struct discord_roles *self)
 

Detailed Description

Generated code.

Author
Cogmasters

Macro Definition Documentation

◆ JSMN_STRICT

#define JSMN_STRICT

◆ JSMN_HEADER

#define JSMN_HEADER

◆ JSONB_HEADER

#define JSONB_HEADER

Function Documentation

◆ discord_role_init()

void discord_role_init ( struct discord_role self)

◆ discord_role_cleanup()

void discord_role_cleanup ( struct discord_role self)

◆ discord_roles_cleanup()

void discord_roles_cleanup ( struct discord_roles self)

◆ discord_role_from_jsmnf()

long discord_role_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_role self 
)

◆ discord_role_from_json()

size_t discord_role_from_json ( const char  buf[],
size_t  size,
struct discord_role self 
)

◆ discord_roles_from_jsmnf()

long discord_roles_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_roles self 
)

◆ discord_roles_from_json()

size_t discord_roles_from_json ( const char  buf[],
size_t  size,
struct discord_roles self 
)

◆ discord_role_to_jsonb()

jsonbcode discord_role_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_role self 
)

◆ discord_role_to_json()

size_t discord_role_to_json ( char  buf[],
size_t  size,
const struct discord_role self 
)

◆ discord_roles_to_jsonb()

jsonbcode discord_roles_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_roles self 
)

◆ discord_roles_to_json()

size_t discord_roles_to_json ( char  buf[],
size_t  size,
const struct discord_roles self 
)