btdrvGetLeEventInfo -> btdrvGetLeHidEventInfo

This commit is contained in:
yellows8 2020-07-22 22:31:56 -04:00
parent b15a583b80
commit 0075672b93
3 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ Result btLeSendIndication(u8 unk, bool flag, const BtdrvGattAttributeUuid *uuid0
/**
* @brief GetLeEventInfo
* @note This is identical to \ref btdrvGetLeEventInfo except different state is used.
* @note This is identical to \ref btdrvGetLeHidEventInfo except different state is used.
* @note The state used by this is reset after writing the data to output.
* @param[in] buffer Output buffer. 0x400-bytes from state is written here.
* @param[in] size Output buffer size.

View File

@ -415,14 +415,14 @@ Result btdrvRegisterGattNotification(bool flag, u32 unk, const BtdrvGattId *id0,
Result btdrvUnregisterGattNotification(bool flag, u32 unk, const BtdrvGattId *id0, const BtdrvGattId *id1);
/**
* @brief GetLeEventInfo
* @brief GetLeHidEventInfo
* @note Only available on [5.0.0+].
* @note The state used by this is reset after writing the data to output.
* @param[out] buffer Output buffer. 0x400-bytes from state is written here.
* @param[in] size Output buffer size.
* @oaram[out] type Output BleEventType.
*/
Result btdrvGetLeEventInfo(void* buffer, size_t size, u32 *type);
Result btdrvGetLeHidEventInfo(void* buffer, size_t size, u32 *type);
/**
* @brief RegisterBleHidEvent

View File

@ -379,7 +379,7 @@ Result btdrvUnregisterGattNotification(bool flag, u32 unk, const BtdrvGattId *id
return _btdrvGattNotification(flag, unk, id0, id1, cmd_id);
}
Result btdrvGetLeEventInfo(void* buffer, size_t size, u32 *type) {
Result btdrvGetLeHidEventInfo(void* buffer, size_t size, u32 *type) {
if (hosversionBefore(5,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
u32 cmd_id = hosversionBefore(6,0,0) ? 95 : 96;