mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
btdrvGetLeEventInfo -> btdrvGetLeHidEventInfo
This commit is contained in:
parent
b15a583b80
commit
0075672b93
@ -113,7 +113,7 @@ Result btLeSendIndication(u8 unk, bool flag, const BtdrvGattAttributeUuid *uuid0
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief GetLeEventInfo
|
* @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.
|
* @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] buffer Output buffer. 0x400-bytes from state is written here.
|
||||||
* @param[in] size Output buffer size.
|
* @param[in] size Output buffer size.
|
||||||
|
@ -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);
|
Result btdrvUnregisterGattNotification(bool flag, u32 unk, const BtdrvGattId *id0, const BtdrvGattId *id1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief GetLeEventInfo
|
* @brief GetLeHidEventInfo
|
||||||
* @note Only available on [5.0.0+].
|
* @note Only available on [5.0.0+].
|
||||||
* @note The state used by this is reset after writing the data to output.
|
* @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[out] buffer Output buffer. 0x400-bytes from state is written here.
|
||||||
* @param[in] size Output buffer size.
|
* @param[in] size Output buffer size.
|
||||||
* @oaram[out] type Output BleEventType.
|
* @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
|
* @brief RegisterBleHidEvent
|
||||||
|
@ -379,7 +379,7 @@ Result btdrvUnregisterGattNotification(bool flag, u32 unk, const BtdrvGattId *id
|
|||||||
return _btdrvGattNotification(flag, unk, id0, id1, cmd_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))
|
if (hosversionBefore(5,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
u32 cmd_id = hosversionBefore(6,0,0) ? 95 : 96;
|
u32 cmd_id = hosversionBefore(6,0,0) ? 95 : 96;
|
||||||
|
Loading…
Reference in New Issue
Block a user