BLE: Fix name of DisconnectionEvent into DisconnectionCompleteEvent for consistency.

pull/8904/head
Vincent Coubard 2018-11-29 12:28:38 +00:00
parent 3ddcdf24a3
commit 4ed3f5620f
3 changed files with 4 additions and 4 deletions

View File

@ -630,10 +630,10 @@ private:
*
* @see ble::Gap::EventHandler::onDisconnectionComplete().
*/
struct DisconnectionEvent {
struct DisconnectionCompleteEvent {
#if !defined(DOXYGEN_ONLY)
DisconnectionEvent(
DisconnectionCompleteEvent(
connection_handle_t connectionHandle,
const disconnection_reason_t &reason
) :

View File

@ -427,7 +427,7 @@ public:
*
* @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) {
_eventHandler->onDisconnectionComplete(
DisconnectionEvent(
DisconnectionCompleteEvent(
handle,
(disconnection_reason_t::type) reason
)