mirror of
https://github.com/Goldenkrew3000/OSSP_OpenSource.git
synced 2025-12-19 00:04:44 +10:00
30 lines
635 B
C
30 lines
635 B
C
/*
|
|
* OpenSubsonicPlayer
|
|
* Goldenkrew3000 2025
|
|
* License: GNU General Public License 3.0
|
|
*/
|
|
|
|
#ifndef _DISCORDRPC_H
|
|
#define _DISCORDRPC_H
|
|
|
|
#define DISCORDRPC_STATE_IDLE 0
|
|
#define DISCORDRPC_STATE_PLAYING 1
|
|
#define DISCORDRPC_STATE_PAUSED 2
|
|
|
|
typedef struct {
|
|
int state;
|
|
long songLength;
|
|
char* songTitle;
|
|
char* songArtist;
|
|
char* coverArtUrl;
|
|
} discordrpc_data;
|
|
|
|
|
|
void discordrpc_struct_init(discordrpc_data** discordrpc_struct);
|
|
void discordrpc_struct_deinit(discordrpc_data** discordrpc_struct);
|
|
int discordrpc_init();
|
|
void discordrpc_update(discordrpc_data** discordrpc_struct);
|
|
char* discordrpc_getOS();
|
|
|
|
#endif
|