mirror of
https://github.com/Goldenkrew3000/OSSP_OpenSource.git
synced 2025-12-20 00:34:44 +10:00
Added basic local discord RPC functionality
This commit is contained in:
23
src/discordrpc.h
Normal file
23
src/discordrpc.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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);
|
||||
void discordrpc_init();
|
||||
void discordrpc_update(discordrpc_data** discordrpc_struct);
|
||||
char* discordrpc_getOS();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user