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