mirror of
https://github.com/yuzu-emu/discord-rpc
synced 2024-11-26 11:17:56 +00:00
These should have been extern C.
This commit is contained in:
parent
6cdc830544
commit
86ca320cb9
2 changed files with 9 additions and 9 deletions
Binary file not shown.
|
@ -71,7 +71,7 @@ static void UpdateReconnectTime()
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DISCORD_DISABLE_IO_THREAD
|
#ifdef DISCORD_DISABLE_IO_THREAD
|
||||||
DISCORD_EXPORT void Discord_UpdateConnection(void)
|
extern "C" DISCORD_EXPORT void Discord_UpdateConnection(void)
|
||||||
#else
|
#else
|
||||||
static void Discord_UpdateConnection(void)
|
static void Discord_UpdateConnection(void)
|
||||||
#endif
|
#endif
|
||||||
|
@ -210,7 +210,7 @@ static bool RegisterForEvent(const char* evtName)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
DISCORD_EXPORT void Discord_Initialize(const char* applicationId,
|
extern "C" DISCORD_EXPORT void Discord_Initialize(const char* applicationId,
|
||||||
DiscordEventHandlers* handlers,
|
DiscordEventHandlers* handlers,
|
||||||
int autoRegister,
|
int autoRegister,
|
||||||
const char* optionalSteamId)
|
const char* optionalSteamId)
|
||||||
|
@ -267,7 +267,7 @@ DISCORD_EXPORT void Discord_Initialize(const char* applicationId,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
DISCORD_EXPORT void Discord_Shutdown()
|
extern "C" DISCORD_EXPORT void Discord_Shutdown()
|
||||||
{
|
{
|
||||||
if (!Connection) {
|
if (!Connection) {
|
||||||
return;
|
return;
|
||||||
|
@ -285,7 +285,7 @@ DISCORD_EXPORT void Discord_Shutdown()
|
||||||
RpcConnection::Destroy(Connection);
|
RpcConnection::Destroy(Connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
DISCORD_EXPORT void Discord_UpdatePresence(const DiscordRichPresence* presence)
|
extern "C" DISCORD_EXPORT void Discord_UpdatePresence(const DiscordRichPresence* presence)
|
||||||
{
|
{
|
||||||
PresenceMutex.lock();
|
PresenceMutex.lock();
|
||||||
QueuedPresence.length = JsonWriteRichPresenceObj(
|
QueuedPresence.length = JsonWriteRichPresenceObj(
|
||||||
|
@ -294,7 +294,7 @@ DISCORD_EXPORT void Discord_UpdatePresence(const DiscordRichPresence* presence)
|
||||||
SignalIOActivity();
|
SignalIOActivity();
|
||||||
}
|
}
|
||||||
|
|
||||||
DISCORD_EXPORT void Discord_Respond(const char* userId, /* DISCORD_REPLY_ */ int reply)
|
extern "C" DISCORD_EXPORT void Discord_Respond(const char* userId, /* DISCORD_REPLY_ */ int reply)
|
||||||
{
|
{
|
||||||
// if we are not connected, let's not batch up stale messages for later
|
// if we are not connected, let's not batch up stale messages for later
|
||||||
if (!Connection || !Connection->IsOpen()) {
|
if (!Connection || !Connection->IsOpen()) {
|
||||||
|
@ -309,7 +309,7 @@ DISCORD_EXPORT void Discord_Respond(const char* userId, /* DISCORD_REPLY_ */ int
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DISCORD_EXPORT void Discord_RunCallbacks()
|
extern "C" DISCORD_EXPORT void Discord_RunCallbacks()
|
||||||
{
|
{
|
||||||
// Note on some weirdness: internally we might connect, get other signals, disconnect any number
|
// Note on some weirdness: internally we might connect, get other signals, disconnect any number
|
||||||
// of times inbetween calls here. Externally, we want the sequence to seem sane, so any other
|
// of times inbetween calls here. Externally, we want the sequence to seem sane, so any other
|
||||||
|
|
Loading…
Reference in a new issue