From dfe3b760f9cc5873bbfefadf4b5f7b1b7f04eaeb Mon Sep 17 00:00:00 2001 From: Goldenkrew3000 Date: Sun, 19 Apr 2026 22:53:22 +1000 Subject: [PATCH] Forgot some extra cleanup in Discord RPC --- src/discordrpc.c | 6 +++--- src/discordrpc.h | 13 +++++++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/discordrpc.c b/src/discordrpc.c index 84c9ca4..280ed4c 100644 --- a/src/discordrpc.c +++ b/src/discordrpc.c @@ -1,8 +1,8 @@ /* - * OpenSubSonicPlayer - * Goldenkrew3000 2025 + * OpenSubsonicPlayer + * Goldenkrew3000 / Hojuix 2026 * License: GNU General Public License 3.0 - * Discord Local RPC Handler + * Info: Discord RPC Handler */ #include diff --git a/src/discordrpc.h b/src/discordrpc.h index 8ef24c3..00e8dda 100644 --- a/src/discordrpc.h +++ b/src/discordrpc.h @@ -1,13 +1,18 @@ /* * OpenSubsonicPlayer - * Goldenkrew3000 2025 + * Goldenkrew3000 / Hojuix 2026 * License: GNU General Public License 3.0 + * Info: Discord RPC Handler */ #ifndef _DISCORDRPC_H #define _DISCORDRPC_H #include +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + #define DISCORDRPC_STATE_IDLE 0 #define DISCORDRPC_STATE_PLAYING_OPENSUBSONIC 1 #define DISCORDRPC_STATE_PLAYING_LOCALFILE 2 @@ -29,4 +34,8 @@ int OSSP_discordrpc_Init(); void OSSP_discordrpc_update(OSSP_discordrpc_t* obj); char* OSSP_discordrpc_getOS(); -#endif +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif // _DISCORDRPC_H