RetroArch
Macros | Functions | Variables
send-presence.c File Reference
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "discord_rpc.h"
Include dependency graph for send-presence.c:

Macros

#define _CRT_SECURE_NO_WARNINGS   /* thanks Microsoft */
 

Functions

static int prompt (char *line, size_t size)
 
static void updateDiscordPresence ()
 
static void handleDiscordReady (const DiscordUser *connectedUser)
 
static void handleDiscordDisconnected (int errcode, const char *message)
 
static void handleDiscordError (int errcode, const char *message)
 
static void handleDiscordJoin (const char *secret)
 
static void handleDiscordSpectate (const char *secret)
 
static void handleDiscordJoinRequest (const DiscordUser *request)
 
static void discordInit ()
 
static void gameLoop ()
 
int main (int argc, char *argv[])
 

Variables

static const char * APPLICATION_ID = "345229890980937739"
 
static int FrustrationLevel = 0
 
static int64_t StartTime
 
static int SendPresence = 1
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_WARNINGS

#define _CRT_SECURE_NO_WARNINGS   /* thanks Microsoft */

Function Documentation

◆ discordInit()

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

◆ gameLoop()

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

◆ handleDiscordDisconnected()

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

◆ handleDiscordError()

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

◆ handleDiscordJoin()

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

◆ handleDiscordJoinRequest()

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

◆ handleDiscordReady()

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

◆ handleDiscordSpectate()

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

◆ main()

int main ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ prompt()

static int prompt ( char *  line,
size_t  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateDiscordPresence()

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

Variable Documentation

◆ APPLICATION_ID

const char* APPLICATION_ID = "345229890980937739"
static

◆ FrustrationLevel

int FrustrationLevel = 0
static

◆ SendPresence

int SendPresence = 1
static

◆ StartTime

int64_t StartTime
static