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