From c6c0aefa4f08907de5443535f96423de34742fb9 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Wed, 19 Jul 2017 14:40:54 -0700 Subject: [PATCH] Rename --- examples/simple/simple.c | 4 ++-- include/discord-rpc.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/simple/simple.c b/examples/simple/simple.c index edd883d..bd2973b 100644 --- a/examples/simple/simple.c +++ b/examples/simple/simple.c @@ -32,7 +32,7 @@ static void handleDiscordDisconnected(int errcode, const char* message) { printf("\nDiscord: disconnected (%d: %s)\n", errcode, message); } -static void handleDiscordWantsPresence() { +static void handleDiscordPresenceRequested() { printf("\nDiscord: requests presence\n"); updateDiscordPresence(); } @@ -83,7 +83,7 @@ int main() { memset(&handlers, 0, sizeof(handlers)); handlers.ready = handleDiscordReady; handlers.disconnected = handleDiscordDisconnected; - handlers.wantsPresence = handleDiscordWantsPresence; + handlers.presenceRequested = handleDiscordPresenceRequested; Discord_Initialize(APPLICATION_ID, &handlers); gameLoop(); diff --git a/include/discord-rpc.h b/include/discord-rpc.h index 0a19cef..4069d3e 100644 --- a/include/discord-rpc.h +++ b/include/discord-rpc.h @@ -28,7 +28,7 @@ typedef struct { typedef struct { void (*ready)(); void (*disconnected)(int errorCode, const char* message); - void (*wantsPresence)(); + void (*presenceRequested)(); void (*joinGame)(const char* joinSecret); void (*spectateGame)(const char* spectateSecret); } DiscordEventHandlers;