mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-26 14:20:21 +00:00
bluetooth-mitm: change buffer parameter type of GetEventInfo functions to void * for consistency
This commit is contained in:
parent
18c8ecfc98
commit
ff9d6fe44b
8 changed files with 8 additions and 8 deletions
|
@ -65,7 +65,7 @@ namespace ams::bluetooth::ble {
|
|||
;
|
||||
}
|
||||
|
||||
Result GetEventInfo(bluetooth::BleEventType *type, uint8_t* buffer, size_t size) {
|
||||
Result GetEventInfo(bluetooth::BleEventType *type, void *buffer, size_t size) {
|
||||
std::scoped_lock lk(g_event_data_lock);
|
||||
|
||||
*type = g_current_event_type;
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace ams::bluetooth::ble {
|
|||
Result Initialize(Handle event_handle);
|
||||
void Finalize(void);
|
||||
|
||||
Result GetEventInfo(bluetooth::BleEventType *type, uint8_t* buffer, size_t size);
|
||||
Result GetEventInfo(bluetooth::BleEventType *type, void *buffer, size_t size);
|
||||
void HandleEvent(void);
|
||||
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ namespace ams::bluetooth::core {
|
|||
;
|
||||
}
|
||||
|
||||
Result GetEventInfo(bluetooth::EventType *type, uint8_t* buffer, size_t size) {
|
||||
Result GetEventInfo(bluetooth::EventType *type, void *buffer, size_t size) {
|
||||
std::scoped_lock lk(g_event_info_lock);
|
||||
|
||||
*type = g_current_event_type;
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace ams::bluetooth::core {
|
|||
Result Initialize(Handle event_handle);
|
||||
void Finalize(void);
|
||||
|
||||
Result GetEventInfo(bluetooth::EventType *type, uint8_t* buffer, size_t size);
|
||||
Result GetEventInfo(bluetooth::EventType *type, void *buffer, size_t size);
|
||||
void HandleEvent(void);
|
||||
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ namespace ams::bluetooth::hid {
|
|||
;
|
||||
}
|
||||
|
||||
Result GetEventInfo(bluetooth::HidEventType *type, uint8_t* buffer, size_t size) {
|
||||
Result GetEventInfo(bluetooth::HidEventType *type, void *buffer, size_t size) {
|
||||
std::scoped_lock lk(g_event_info_lock);
|
||||
|
||||
*type = g_current_event_type;
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace ams::bluetooth::hid {
|
|||
Result Initialize(Handle event_handle);
|
||||
void Finalize(void);
|
||||
|
||||
Result GetEventInfo(bluetooth::HidEventType *type, uint8_t* buffer, size_t size);
|
||||
Result GetEventInfo(bluetooth::HidEventType *type, void *buffer, size_t size);
|
||||
void HandleEvent(void);
|
||||
|
||||
void SignalFakeEvent(bluetooth::HidEventType type, const void *data, size_t size);
|
||||
|
|
|
@ -165,7 +165,7 @@ namespace ams::bluetooth::hid::report {
|
|||
}
|
||||
|
||||
/* Only used for < 7.0.0. Newer firmwares read straight from shared memory */
|
||||
Result GetEventInfo(bluetooth::HidEventType *type, uint8_t* buffer, size_t size) {
|
||||
Result GetEventInfo(bluetooth::HidEventType *type, void *buffer, size_t size) {
|
||||
while (true) {
|
||||
auto packet = g_fake_buffer->Read();
|
||||
if (!packet)
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace ams::bluetooth::hid::report {
|
|||
Result WriteHidReportBuffer(const bluetooth::Address *address, const bluetooth::HidReport *report);
|
||||
Result SendHidReport(const bluetooth::Address *address, const bluetooth::HidReport *report);
|
||||
|
||||
Result GetEventInfo(bluetooth::HidEventType *type, uint8_t* buffer, size_t size);
|
||||
Result GetEventInfo(bluetooth::HidEventType *type, void *buffer, size_t size);
|
||||
void HandleEvent(void);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue