Concord - C Discord API library
A Discord API wrapper library written in C
application.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 application.h:

Go to the source code of this file.

Data Structures

struct  discord_application
 
struct  discord_install_params
 

Macros

#define DISCORD_APPLICATION_GATEWAY_PRESENCE   1 << 12
 
#define DISCORD_APPLICATION_GATEWAY_PRESENCE_LIMITED   1 << 13
 
#define DISCORD_APPLICATION_GATEWAY_GUILD_MEMBERS   1 << 14
 
#define DISCORD_APPLICATION_GATEWAY_GUILD_MEMBERS_LIMITED   1 << 15
 
#define DISCORD_APPLICATION_VERIFICATION_PENDING_GUILD_LIMIT   1 << 16
 
#define DISCORD_APPLICATION_EMBEDDED   1 << 17
 
#define DISCORD_APPLICATION_GATEWAY_MESSAGE_CONTENT   1 << 18
 
#define DISCORD_APPLICATION_GATEWAY_MESSAGE_CONTENT_LIMITED   1 << 19
 
#define JSMN_STRICT
 
#define JSMN_HEADER
 
#define JSONB_HEADER
 

Functions

void discord_application_init (struct discord_application *self)
 
void discord_application_cleanup (struct discord_application *self)
 
void discord_install_params_init (struct discord_install_params *self)
 
void discord_install_params_cleanup (struct discord_install_params *self)
 
long discord_application_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_application *self)
 
size_t discord_application_from_json (const char buf[], size_t size, struct discord_application *self)
 
long discord_install_params_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_install_params *self)
 
size_t discord_install_params_from_json (const char buf[], size_t size, struct discord_install_params *self)
 
jsonbcode discord_application_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_application *self)
 
size_t discord_application_to_json (char buf[], size_t size, const struct discord_application *self)
 
jsonbcode discord_install_params_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_install_params *self)
 
size_t discord_install_params_to_json (char buf[], size_t size, const struct discord_install_params *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_application_init()

void discord_application_init ( struct discord_application self)

◆ discord_application_cleanup()

void discord_application_cleanup ( struct discord_application self)

◆ discord_install_params_init()

void discord_install_params_init ( struct discord_install_params self)

◆ discord_install_params_cleanup()

void discord_install_params_cleanup ( struct discord_install_params self)

◆ discord_application_from_jsmnf()

long discord_application_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_application self 
)

◆ discord_application_from_json()

size_t discord_application_from_json ( const char  buf[],
size_t  size,
struct discord_application self 
)

◆ discord_install_params_from_jsmnf()

long discord_install_params_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_install_params self 
)

◆ discord_install_params_from_json()

size_t discord_install_params_from_json ( const char  buf[],
size_t  size,
struct discord_install_params self 
)

◆ discord_application_to_jsonb()

jsonbcode discord_application_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_application self 
)

◆ discord_application_to_json()

size_t discord_application_to_json ( char  buf[],
size_t  size,
const struct discord_application self 
)

◆ discord_install_params_to_jsonb()

jsonbcode discord_install_params_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_install_params self 
)

◆ discord_install_params_to_json()

size_t discord_install_params_to_json ( char  buf[],
size_t  size,
const struct discord_install_params self 
)