Concord - C Discord API library
A Discord API wrapper library written in C
|
Request's return context. More...
#include <discord-response.h>
Data Fields | |
void * | data |
void(* | cleanup )(struct discord *client, void *data) |
const void * | keep |
bool | high_priority |
void(* | fail )(struct discord *client, struct discord_response *resp) |
void(* | done )(struct discord *client, struct discord_response *resp, const struct discord_auth_response *ret) |
struct discord_auth_response * | sync |
Request's return context.
void* discord_ret_auth_response::data |
user arbitrary data to be passed to done
or fail
callbacks
cleanup method to be called for data
, once its no longer being referenced
const void* discord_ret_auth_response::keep |
Concord callback parameter the client wish to keep reference
bool discord_ret_auth_response::high_priority |
if true
then request will be prioritized over already enqueued requests
void(* discord_ret_auth_response::fail) (struct discord *client, struct discord_response *resp) |
optional callback to be executed on a failed request
void(* discord_ret_auth_response::done) (struct discord *client, struct discord_response *resp, const struct discord_auth_response *ret) |
optional callback to be executed on a successful request
struct discord_auth_response* discord_ret_auth_response::sync |
if an address is provided, then request will block the thread and perform on-spot. On success the response object will be written to the address, unless enabled with DISCORD_SYNC_FLAG