RetroArch
Functions | Variables
discord.c File Reference
#include <file/file_path.h>
#include "discord.h"
#include "discord_register.h"
#include "../retroarch.h"
#include "../configuration.h"
#include "../core.h"
#include "../core_info.h"
#include "../paths.h"
#include "../playlist.h"
#include "../msg_hash.h"
Include dependency graph for discord.c:

Functions

static void handle_discord_ready (const DiscordUser *connectedUser)
 
static void handle_discord_disconnected (int errcode, const char *message)
 
static void handle_discord_error (int errcode, const char *message)
 
static void handle_discord_join (const char *secret)
 
static void handle_discord_spectate (const char *secret)
 
static void handle_discord_join_request (const DiscordUser *request)
 
void discord_update (enum discord_presence presence)
 
void discord_init (void)
 
void discord_shutdown (void)
 
void discord_run_callbacks ()
 

Variables

static int FrustrationLevel = 0
 
static int64_t start_time = 0
 
static int64_t pause_time = 0
 
static int64_t ellapsed_time = 0
 
static bool discord_ready = false
 
static unsigned discord_status = 0
 
struct netplay_roomroom
 
DiscordRichPresence discord_presence
 

Function Documentation

◆ discord_init()

void discord_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ discord_run_callbacks()

void discord_run_callbacks ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ discord_shutdown()

void discord_shutdown ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ discord_update()

void discord_update ( enum discord_presence  presence)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_discord_disconnected()

static void handle_discord_disconnected ( int  errcode,
const char *  message 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_discord_error()

static void handle_discord_error ( int  errcode,
const char *  message 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_discord_join()

static void handle_discord_join ( const char *  secret)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_discord_join_request()

static void handle_discord_join_request ( const DiscordUser request)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_discord_ready()

static void handle_discord_ready ( const DiscordUser connectedUser)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_discord_spectate()

static void handle_discord_spectate ( const char *  secret)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ discord_presence

◆ discord_ready

bool discord_ready = false
static

◆ discord_status

unsigned discord_status = 0
static

◆ ellapsed_time

int64_t ellapsed_time = 0
static

◆ FrustrationLevel

int FrustrationLevel = 0
static

◆ pause_time

int64_t pause_time = 0
static

◆ room

struct netplay_room* room

◆ start_time

int64_t start_time = 0
static