Concord - C Discord API library
A Discord API wrapper library written in C
concord-once.h File Reference

Initialized once. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ccord_shutdown_async ()
 Asynchronously shutdown all client(s) from their on-going sessions. More...
 
int ccord_shutting_down ()
 Whether or not concord is currently shutting down. More...
 
CCORDcode ccord_global_init ()
 Initialize global shared-resources not API-specific. More...
 
void ccord_global_cleanup ()
 Cleanup global shared-resources. More...
 

Detailed Description

Initialized once.

Author
Cogmasters

Function Documentation

◆ ccord_shutdown_async()

void ccord_shutdown_async ( )

Asynchronously shutdown all client(s) from their on-going sessions.

◆ ccord_shutting_down()

int ccord_shutting_down ( )

Whether or not concord is currently shutting down.

If true, clients will then attempt to perform a clean disconnect, rather than just letting the program end abruptly (e.g. in the case of a SIGINT).

Note
client shall only attempt to disconnect if there aren't any active events waiting to be listened or reacted to

◆ ccord_global_init()

CCORDcode ccord_global_init ( )

Initialize global shared-resources not API-specific.

Returns
CCORD_OK on success, CCORD_GLOBAL_INIT on error
Examples
audit-log.c, ban.c, cache.c, channel.c, components.c, embed.c, emoji.c, fetch-messages.c, guild-template.c, guild.c, invite.c, manual-dm.c, pin.c, reaction.c, slash-commands.c, slash-commands2.c, timers.c, and webhook.c.

◆ ccord_global_cleanup()