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

Go to the source code of this file.

Data Structures

struct  strings
 
struct  json_values
 
struct  snowflakes
 
struct  bitmasks
 
struct  integers
 

Macros

#define JSMN_STRICT
 
#define JSMN_HEADER
 
#define JSONB_HEADER
 

Functions

void strings_cleanup (struct strings *self)
 
void json_values_cleanup (struct json_values *self)
 
void snowflakes_cleanup (struct snowflakes *self)
 
void bitmasks_cleanup (struct bitmasks *self)
 
void integers_cleanup (struct integers *self)
 
long strings_from_jsmnf (jsmnf_pair *root, const char *js, struct strings *self)
 
size_t strings_from_json (const char buf[], size_t size, struct strings *self)
 
long json_values_from_jsmnf (jsmnf_pair *root, const char *js, struct json_values *self)
 
size_t json_values_from_json (const char buf[], size_t size, struct json_values *self)
 
long snowflakes_from_jsmnf (jsmnf_pair *root, const char *js, struct snowflakes *self)
 
size_t snowflakes_from_json (const char buf[], size_t size, struct snowflakes *self)
 
long bitmasks_from_jsmnf (jsmnf_pair *root, const char *js, struct bitmasks *self)
 
size_t bitmasks_from_json (const char buf[], size_t size, struct bitmasks *self)
 
long integers_from_jsmnf (jsmnf_pair *root, const char *js, struct integers *self)
 
size_t integers_from_json (const char buf[], size_t size, struct integers *self)
 
jsonbcode strings_to_jsonb (jsonb *b, char buf[], size_t size, const struct strings *self)
 
size_t strings_to_json (char buf[], size_t size, const struct strings *self)
 
jsonbcode json_values_to_jsonb (jsonb *b, char buf[], size_t size, const struct json_values *self)
 
size_t json_values_to_json (char buf[], size_t size, const struct json_values *self)
 
jsonbcode snowflakes_to_jsonb (jsonb *b, char buf[], size_t size, const struct snowflakes *self)
 
size_t snowflakes_to_json (char buf[], size_t size, const struct snowflakes *self)
 
jsonbcode bitmasks_to_jsonb (jsonb *b, char buf[], size_t size, const struct bitmasks *self)
 
size_t bitmasks_to_json (char buf[], size_t size, const struct bitmasks *self)
 
jsonbcode integers_to_jsonb (jsonb *b, char buf[], size_t size, const struct integers *self)
 
size_t integers_to_json (char buf[], size_t size, const struct integers *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

◆ strings_cleanup()

void strings_cleanup ( struct strings self)

◆ json_values_cleanup()

void json_values_cleanup ( struct json_values self)

◆ snowflakes_cleanup()

void snowflakes_cleanup ( struct snowflakes self)

◆ bitmasks_cleanup()

void bitmasks_cleanup ( struct bitmasks self)

◆ integers_cleanup()

void integers_cleanup ( struct integers self)

◆ strings_from_jsmnf()

long strings_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct strings self 
)

◆ strings_from_json()

size_t strings_from_json ( const char  buf[],
size_t  size,
struct strings self 
)

◆ json_values_from_jsmnf()

long json_values_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct json_values self 
)

◆ json_values_from_json()

size_t json_values_from_json ( const char  buf[],
size_t  size,
struct json_values self 
)

◆ snowflakes_from_jsmnf()

long snowflakes_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct snowflakes self 
)

◆ snowflakes_from_json()

size_t snowflakes_from_json ( const char  buf[],
size_t  size,
struct snowflakes self 
)

◆ bitmasks_from_jsmnf()

long bitmasks_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct bitmasks self 
)

◆ bitmasks_from_json()

size_t bitmasks_from_json ( const char  buf[],
size_t  size,
struct bitmasks self 
)

◆ integers_from_jsmnf()

long integers_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct integers self 
)

◆ integers_from_json()

size_t integers_from_json ( const char  buf[],
size_t  size,
struct integers self 
)

◆ strings_to_jsonb()

jsonbcode strings_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct strings self 
)

◆ strings_to_json()

size_t strings_to_json ( char  buf[],
size_t  size,
const struct strings self 
)
Examples
components.c.

◆ json_values_to_jsonb()

jsonbcode json_values_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct json_values self 
)

◆ json_values_to_json()

size_t json_values_to_json ( char  buf[],
size_t  size,
const struct json_values self 
)

◆ snowflakes_to_jsonb()

jsonbcode snowflakes_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct snowflakes self 
)

◆ snowflakes_to_json()

size_t snowflakes_to_json ( char  buf[],
size_t  size,
const struct snowflakes self 
)

◆ bitmasks_to_jsonb()

jsonbcode bitmasks_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct bitmasks self 
)

◆ bitmasks_to_json()

size_t bitmasks_to_json ( char  buf[],
size_t  size,
const struct bitmasks self 
)

◆ integers_to_jsonb()

jsonbcode integers_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct integers self 
)

◆ integers_to_json()

size_t integers_to_json ( char  buf[],
size_t  size,
const struct integers self 
)