From 194d874e088dafdc72e04d500918830e21433a0c Mon Sep 17 00:00:00 2001 From: Sergi Granell Date: Sun, 25 Dec 2016 11:00:00 +0100 Subject: Update SceBt --- include/kernel/bt.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'include/kernel/bt.h') diff --git a/include/kernel/bt.h b/include/kernel/bt.h index fa19682..f0b0102 100644 --- a/include/kernel/bt.h +++ b/include/kernel/bt.h @@ -261,7 +261,17 @@ typedef struct { typedef struct { // mac0 is at *(unsigned int *)&data[0x08]; // mac1 is at *(unsigned int *)&data[0x0C]; - unsigned char data[0x10]; + union { + unsigned char data[0x10]; + struct { + unsigned char id; + unsigned char unk1; + unsigned short unk2; + unsigned int unk3; + unsigned int mac0; + unsigned int mac1; + }; + }; } SceBtEvent; typedef void (*SceBtCallback)(int r0, int r1, int r2, int r3); @@ -283,7 +293,7 @@ int sceBtAvrcpSendButton(int r0, int r1, int r2, int r3); int sceBtAvrcpSendVolume(int r0, int r1, int r2, int r3); int sceBtAvrcpSetPlayStatus(int r0, int r1, int r2, int r3); int sceBtAvrcpSetTitle(int r0, int r1, int r2, int r3); -int sceBtDeleteRegisteredInfo(int r0, int r1, int r2, int r3); +int sceBtDeleteRegisteredInfo(unsigned int mac0, unsigned int mac1); int sceBtFreqAudio(int r0, int r1, int r2, int r3); int sceBtGetConfiguration(void); // returns 0x0 BT disabled, 0x9 if enabled int sceBtGetConnectingInfo(unsigned int mac0, unsigned int mac1); // 1 = disconnected?, 2 = connecting?, 5 = connected? -- cgit v1.2.3