Concord - C Discord API library
A Discord API wrapper library written in C
discord_ret_response Struct Reference

Attributes of response datatype. More...

#include <discord-internal.h>

Data Fields

void * data
 
size_t size
 
void(* init )(void *data)
 
size_t(* from_json )(const char *json, size_t len, void *data)
 
void(* cleanup )(void *data)
 

Detailed Description

Attributes of response datatype.

Field Documentation

◆ data

void* discord_ret_response::data

pointer to datatype

◆ size

size_t discord_ret_response::size

size of datatype in bytes

◆ init

void(* discord_ret_response::init) (void *data)

initializer function for datatype fields

◆ from_json

size_t(* discord_ret_response::from_json) (const char *json, size_t len, void *data)

populate datatype with JSON values

◆ cleanup

void(* discord_ret_response::cleanup) (void *data)

cleanup function for datatype


The documentation for this struct was generated from the following file: