|
Concord - C Discord API library
A Discord API wrapper library written in C
|
The Discord client handler. More...
#include <discord-internal.h>
Data Fields | |
| struct reflectc * | registry |
| struct logmod_logger * | logger |
| struct logmod_logger | table [64] |
| struct logmod | logmod |
| struct discord_config | config |
| unsigned | pid |
| bool | is_original |
| struct io_poller * | io_poller |
| struct discord_message_commands | commands |
| struct discord_refcounter | refcounter |
| struct discord_rest | rest |
| struct discord_gateway | gw |
| struct discord_user | self |
| struct discord_cache | cache |
| int | shutdown_fd |
| struct { | |
| struct discord_timers internal | |
| struct discord_timers user | |
| } | timers |
| void(* | on_idle )(struct discord *client) |
| void(* | on_cycle )(struct discord *client) |
| void * | data |
| struct { | |
| int count | |
| pthread_mutex_t lock | |
| pthread_cond_t cond | |
| } * | workers |
| struct ccord_szbuf | file |
The Discord client handler.
Used to access/perform public functions from discord.h
| struct reflectc* discord::registry |
the registry for all wrapped discord data types
struct reflectc | struct logmod_logger* discord::logger |
DISCORD logging module
| struct logmod_logger discord::table[64] |
LogMod loggers table
| struct logmod discord::logmod |
LogMod handler
| struct discord_config discord::config |
the configuration handler
| unsigned discord::pid |
the id of the process where this modules was created
| bool discord::is_original |
whether this is the original client or a clone
| struct io_poller* discord::io_poller |
the io poller for listening to file descriptors
| struct discord_message_commands discord::commands |
the user's message commands
| struct discord_refcounter discord::refcounter |
user's data reference counter for automatic cleanup
| struct discord_rest discord::rest |
the handle for interfacing with Discord's REST API
| struct discord_gateway discord::gw |
the handle for interfacing with Discord's Gateway API
| struct discord_user discord::self |
the client's user structure
| struct discord_cache discord::cache |
the handle for registering and retrieving Discord data
| int discord::shutdown_fd |
fd that gets triggered when discord_shutdown_all() is called
| struct discord_timers discord::internal |
| struct discord_timers discord::user |
| struct { ... } discord::timers |
| void(* discord::on_idle) (struct discord *client) |
triggers when idle
| void(* discord::on_cycle) (struct discord *client) |
triggers once per loop cycle
| void* discord::data |
user arbitrary data
| int discord::count |
amount of worker-threads currently being used by client
| pthread_mutex_t discord::lock |
synchronize count between workers
| pthread_cond_t discord::cond |
notify of count decrement
| struct { ... } * discord::workers |
keep tab of amount of worker threads being used by client
| struct ccord_szbuf discord::file |
config.json file contents if client was initialized with discord_from_json()