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

Go to the source code of this file.

Data Structures

struct  discord_team
 
struct  discord_team_member
 
struct  discord_team_members
 

Macros

#define JSMN_STRICT
 
#define JSMN_HEADER
 
#define JSONB_HEADER
 

Enumerations

enum  discord_membership_state { DISCORD_MEMBERSHIP_INVITED = 1 , DISCORD_MEMBERSHIP_ACCEPTED = 2 }
 

Functions

void discord_team_init (struct discord_team *self)
 
void discord_team_cleanup (struct discord_team *self)
 
long discord_team_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_team *self)
 
size_t discord_team_from_json (const char buf[], size_t size, struct discord_team *self)
 
jsonbcode discord_team_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_team *self)
 
size_t discord_team_to_json (char buf[], size_t size, const struct discord_team *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

Enumeration Type Documentation

◆ discord_membership_state

Enumerator
DISCORD_MEMBERSHIP_INVITED 
DISCORD_MEMBERSHIP_ACCEPTED 

Function Documentation

◆ discord_team_init()

void discord_team_init ( struct discord_team self)

◆ discord_team_cleanup()

void discord_team_cleanup ( struct discord_team self)

◆ discord_team_from_jsmnf()

long discord_team_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_team self 
)

◆ discord_team_from_json()

size_t discord_team_from_json ( const char  buf[],
size_t  size,
struct discord_team self 
)

◆ discord_team_to_jsonb()

jsonbcode discord_team_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_team self 
)

◆ discord_team_to_json()

size_t discord_team_to_json ( char  buf[],
size_t  size,
const struct discord_team self 
)