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