RetroArch
|
#include "discord_rpc.h"
#include "backoff.h"
#include "discord_register.h"
#include "msg_queue.h"
#include "rpc_connection.h"
#include "serialization.h"
#include <atomic>
#include <chrono>
#include <mutex>
#include <condition_variable>
#include <thread>
Classes | |
struct | QueuedMessage |
struct | User |
class | IoThreadHolder |
Macros | |
#define | HANDLE_EVENT_REGISTRATION(handler_name, event) |
Functions | |
static void | Discord_UpdateConnection (void) |
static void | UpdateReconnectTime () |
static void | SignalIOActivity () |
static bool | RegisterForEvent (const char *evtName) |
static bool | DeregisterForEvent (const char *evtName) |
DISCORD_EXPORT void | Discord_Initialize (const char *applicationId, DiscordEventHandlers *handlers, int autoRegister, const char *optionalSteamId) |
DISCORD_EXPORT void | Discord_Shutdown (void) |
DISCORD_EXPORT void | Discord_UpdatePresence (const DiscordRichPresence *presence) |
DISCORD_EXPORT void | Discord_ClearPresence (void) |
DISCORD_EXPORT void | Discord_Respond (const char *userId, int reply) |
DISCORD_EXPORT void | Discord_RunCallbacks (void) |
DISCORD_EXPORT void | Discord_UpdateHandlers (DiscordEventHandlers *newHandlers) |
#define HANDLE_EVENT_REGISTRATION | ( | handler_name, | |
event | |||
) |
DISCORD_EXPORT void Discord_ClearPresence | ( | void | ) |
DISCORD_EXPORT void Discord_Initialize | ( | const char * | applicationId, |
DiscordEventHandlers * | handlers, | ||
int | autoRegister, | ||
const char * | optionalSteamId | ||
) |
DISCORD_EXPORT void Discord_Respond | ( | const char * | userId, |
int | reply | ||
) |
DISCORD_EXPORT void Discord_RunCallbacks | ( | void | ) |
DISCORD_EXPORT void Discord_Shutdown | ( | void | ) |
DISCORD_EXPORT void Discord_UpdateHandlers | ( | DiscordEventHandlers * | newHandlers | ) |
DISCORD_EXPORT void Discord_UpdatePresence | ( | const DiscordRichPresence * | presence | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
constexpr size_t JoinQueueSize {8} |
|
static |
|
static |
|
static |
|
static |
constexpr size_t MaxMessageSize {16 * 1024} |
constexpr size_t MessageQueueSize {8} |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |