bluetooth-mitm: change buffer parameter type of GetEventInfo functions to void * for consistency

This commit is contained in:
ndeadly 2021-02-21 17:36:24 +01:00
parent 18c8ecfc98
commit ff9d6fe44b
8 changed files with 8 additions and 8 deletions

View file

@ -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;

View file

@ -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);
}

View file

@ -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;

View file

@ -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);
}

View file

@ -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;

View file

@ -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);

View file

@ -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)

View file

@ -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);
}