BLE: Fix name of DisconnectionEvent into DisconnectionCompleteEvent for consistency.

pull/8974/head
Vincent Coubard 2018-11-29 12:28:38 +00:00 committed by adbridge
parent df00415236
commit 3f56b2247e
3 changed files with 4 additions and 4 deletions

View File

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

View File

@ -427,7 +427,7 @@ public:
* *
* @see disconnect() * @see disconnect()
*/ */
virtual void onDisconnectionComplete(const DisconnectionEvent &event) virtual void onDisconnectionComplete(const DisconnectionCompleteEvent &event)
{ {
} }

View File

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