mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Fix name of DisconnectionEvent into DisconnectionCompleteEvent for consistency.
parent
df00415236
commit
3f56b2247e
|
@ -630,10 +630,10 @@ private:
|
||||||
*
|
*
|
||||||
* @see ble::Gap::EventHandler::onDisconnectionComplete().
|
* @see ble::Gap::EventHandler::onDisconnectionComplete().
|
||||||
*/
|
*/
|
||||||
struct DisconnectionEvent {
|
struct DisconnectionCompleteEvent {
|
||||||
#if !defined(DOXYGEN_ONLY)
|
#if !defined(DOXYGEN_ONLY)
|
||||||
|
|
||||||
DisconnectionEvent(
|
DisconnectionCompleteEvent(
|
||||||
connection_handle_t connectionHandle,
|
connection_handle_t connectionHandle,
|
||||||
const disconnection_reason_t &reason
|
const disconnection_reason_t &reason
|
||||||
) :
|
) :
|
||||||
|
|
|
@ -427,7 +427,7 @@ public:
|
||||||
*
|
*
|
||||||
* @see disconnect()
|
* @see disconnect()
|
||||||
*/
|
*/
|
||||||
virtual void onDisconnectionComplete(const DisconnectionEvent &event)
|
virtual void onDisconnectionComplete(const DisconnectionCompleteEvent &event)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1448,7 +1448,7 @@ void GenericGap::processDisconnectionEvent(
|
||||||
|
|
||||||
if (_eventHandler) {
|
if (_eventHandler) {
|
||||||
_eventHandler->onDisconnectionComplete(
|
_eventHandler->onDisconnectionComplete(
|
||||||
DisconnectionEvent(
|
DisconnectionCompleteEvent(
|
||||||
handle,
|
handle,
|
||||||
(disconnection_reason_t::type) reason
|
(disconnection_reason_t::type) reason
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue