Concord - C Discord API library
A Discord API wrapper library written in C
|
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"
Go to the source code of this file.
Data Structures | |
struct | discord_component |
struct | discord_components |
struct | discord_select_option |
struct | discord_select_options |
struct | discord_component_media |
struct | discord_component_item |
struct | discord_component_items |
Macros | |
#define | JSMN_STRICT |
#define | JSMN_HEADER |
#define | JSONB_HEADER |
Enumerations | |
enum | discord_component_types { DISCORD_COMPONENT_ACTION_ROW = 1 , DISCORD_COMPONENT_BUTTON = 2 , DISCORD_COMPONENT_SELECT_MENU = 3 , DISCORD_COMPONENT_TEXT_INPUT = 4 , DISCORD_COMPONENT_USER_SELECT = 5 , DISCORD_COMPONENT_ROLE_SELECT = 6 , DISCORD_COMPONENT_MENTION_SELECT = 7 , DISCORD_COMPONENT_CHANNEL_SELECT = 8 , DISCORD_COMPONENT_SECTION = 9 , DISCORD_COMPONENT_TEXT_DISPLAY = 10 , DISCORD_COMPONENT_THUMBNAIL = 11 , DISCORD_COMPONENT_MEDIA_GALLERY = 12 , DISCORD_COMPONENT_FILE = 13 , DISCORD_COMPONENT_SEPARATOR = 14 , DISCORD_COMPONENT_CONTENT_INVENTORY_ENTRY = 16 , DISCORD_COMPONENT_CONTAINER = 17 } |
enum | discord_component_styles { DISCORD_BUTTON_PRIMARY = 1 , DISCORD_BUTTON_SECONDARY = 2 , DISCORD_BUTTON_SUCCESS = 3 , DISCORD_BUTTON_DANGER = 4 , DISCORD_BUTTON_LINK = 5 , DISCORD_TEXT_SHORT = 1 , DISCORD_TEXT_PARAGRAPH = 2 } |
enum | discord_component_spacing { DISCORD_COMPONENT_SPACING_SMALL = 1 , DISCORD_COMPONENT_SPACING_LARGE = 2 } |
Generated code.
#define JSMN_STRICT |
#define JSMN_HEADER |
#define JSONB_HEADER |
void discord_component_init | ( | struct discord_component * | self | ) |
void discord_component_cleanup | ( | struct discord_component * | self | ) |
void discord_components_cleanup | ( | struct discord_components * | self | ) |
void discord_select_options_cleanup | ( | struct discord_select_options * | self | ) |
void discord_component_items_cleanup | ( | struct discord_component_items * | self | ) |
long discord_component_from_jsmnf | ( | jsmnf_pair * | root, |
const char * | js, | ||
struct discord_component * | self | ||
) |
size_t discord_component_from_json | ( | const char | buf[], |
size_t | size, | ||
struct discord_component * | self | ||
) |
long discord_components_from_jsmnf | ( | jsmnf_pair * | root, |
const char * | js, | ||
struct discord_components * | self | ||
) |
size_t discord_components_from_json | ( | const char | buf[], |
size_t | size, | ||
struct discord_components * | self | ||
) |
long discord_select_options_from_jsmnf | ( | jsmnf_pair * | root, |
const char * | js, | ||
struct discord_select_options * | self | ||
) |
size_t discord_select_options_from_json | ( | const char | buf[], |
size_t | size, | ||
struct discord_select_options * | self | ||
) |
long discord_component_items_from_jsmnf | ( | jsmnf_pair * | root, |
const char * | js, | ||
struct discord_component_items * | self | ||
) |
size_t discord_component_items_from_json | ( | const char | buf[], |
size_t | size, | ||
struct discord_component_items * | self | ||
) |
jsonbcode discord_component_to_jsonb | ( | jsonb * | b, |
char | buf[], | ||
size_t | size, | ||
const struct discord_component * | self | ||
) |
size_t discord_component_to_json | ( | char | buf[], |
size_t | size, | ||
const struct discord_component * | self | ||
) |
jsonbcode discord_components_to_jsonb | ( | jsonb * | b, |
char | buf[], | ||
size_t | size, | ||
const struct discord_components * | self | ||
) |
size_t discord_components_to_json | ( | char | buf[], |
size_t | size, | ||
const struct discord_components * | self | ||
) |
jsonbcode discord_select_options_to_jsonb | ( | jsonb * | b, |
char | buf[], | ||
size_t | size, | ||
const struct discord_select_options * | self | ||
) |
size_t discord_select_options_to_json | ( | char | buf[], |
size_t | size, | ||
const struct discord_select_options * | self | ||
) |
jsonbcode discord_component_items_to_jsonb | ( | jsonb * | b, |
char | buf[], | ||
size_t | size, | ||
const struct discord_component_items * | self | ||
) |
size_t discord_component_items_to_json | ( | char | buf[], |
size_t | size, | ||
const struct discord_component_items * | self | ||
) |