Skip to content

Commit

Permalink
Initial DBus support
Browse files Browse the repository at this point in the history
There are quite a few stubs.
  • Loading branch information
tatokis committed Jun 27, 2019
1 parent 0e555da commit 97c317e
Show file tree
Hide file tree
Showing 4 changed files with 838 additions and 0 deletions.
20 changes: 20 additions & 0 deletions VGMPlay/mmkeys.h
@@ -0,0 +1,20 @@
#ifndef __MMKEYS_H__
#define __MMKEYS_H__

typedef void (*mmkey_cbfunc)(UINT8 event);

#define MMKEY_PLAY 0x01
#define MMKEY_PREV 0x10
#define MMKEY_NEXT 0x11

// Defines for the DBUS Signal handler
#define SIGNAL_METADATA 0x01 // Metadata changed
#define SIGNAL_PLAYSTATUS 0x02 // Playback Status Changed
#define SIGNAL_SEEKSTATUS 0x04 // Seek Status Changed
#define SIGNAL_SEEK 0x08 // Seeked

UINT8 MultimediaKeyHook_Init(void);
void MultimediaKeyHook_Deinit(void);
void MultimediaKeyHook_SetCallback(mmkey_cbfunc callbackFunc);

#endif // __MMKEYS_H__

0 comments on commit 97c317e

Please sign in to comment.