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_integrations *ret) |
struct discord_integrations * | sync |
Request's return context.
void* discord_ret_integrations::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_integrations::keep |
Concord callback parameter the client wish to keep reference
bool discord_ret_integrations::high_priority |
if true
then request will be prioritized over already enqueued requests
void(* discord_ret_integrations::fail) (struct discord *client, struct discord_response *resp) |
optional callback to be executed on a failed request
void(* discord_ret_integrations::done) (struct discord *client, struct discord_response *resp, const struct discord_integrations *ret) |
optional callback to be executed on a successful request
struct discord_integrations* discord_ret_integrations::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