Move some stuff, hook up connect/disconnect cbs

This commit is contained in:
Chris Marsh
2017-07-06 11:46:13 -07:00
parent 47c488ac6b
commit 6d7e279074
6 changed files with 13 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/*
This is a simple example in C of using the rich presence API syncronously.
This is a simple example in C of using the rich presence API asyncronously.
*/
#define _CRT_SECURE_NO_WARNINGS /* thanks Microsoft */
@ -25,15 +25,15 @@ static void updateDiscordPresence() {
}
static void handleDiscordReady() {
printf("Discord: ready\n");
printf("\nDiscord: ready\n");
}
static void handleDiscordDisconnected() {
printf("Discord: disconnected\n");
printf("\nDiscord: disconnected\n");
}
static void handleDiscordWantsPresence() {
printf("Discord: requests presence\n");
printf("\nDiscord: requests presence\n");
updateDiscordPresence();
}

View File

@ -1,3 +1,3 @@
include_directories(${PROJECT_SOURCE_DIR}/include)
add_executable(simplest-client simple.c)
add_executable(simplest-client simplest.c)
target_link_libraries(simplest-client discord-rpc-simple)