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;