mirror of https://github.com/ARMmbed/mbed-os.git
use grandfathered convention for class members names and initialise them
parent
3808db90b2
commit
1cea53b6a7
|
@ -112,7 +112,7 @@ public:
|
|||
*/
|
||||
void setEventHandler(EventHandler *handler)
|
||||
{
|
||||
_eventHandler = handler;
|
||||
eventHandler = handler;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -795,7 +795,7 @@ public:
|
|||
}
|
||||
|
||||
protected:
|
||||
GattClient()
|
||||
GattClient() : eventHandler(NULL)
|
||||
{
|
||||
/* Empty */
|
||||
}
|
||||
|
@ -850,7 +850,7 @@ protected:
|
|||
/**
|
||||
* Event handler provided by the application.
|
||||
*/
|
||||
EventHandler *_eventHandler;
|
||||
EventHandler *eventHandler;
|
||||
|
||||
/**
|
||||
* Callchain containing all registered event handlers for data read
|
||||
|
|
|
@ -116,7 +116,7 @@ public:
|
|||
*/
|
||||
void setEventHandler(EventHandler *handler)
|
||||
{
|
||||
_eventHandler = handler;
|
||||
eventHandler = handler;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -198,6 +198,7 @@ protected:
|
|||
GattServer() :
|
||||
serviceCount(0),
|
||||
characteristicCount(0),
|
||||
eventHandler(NULL),
|
||||
dataSentCallChain(),
|
||||
dataWrittenCallChain(),
|
||||
dataReadCallChain(),
|
||||
|
@ -813,7 +814,7 @@ protected:
|
|||
/**
|
||||
* Event handler provided by the application.
|
||||
*/
|
||||
EventHandler *_eventHandler;
|
||||
EventHandler *eventHandler;
|
||||
|
||||
/**
|
||||
* The total number of services added to the ATT table.
|
||||
|
|
|
@ -37,13 +37,16 @@ class GenericGattClient : public GattClient,
|
|||
public pal::GattClient::EventHandler {
|
||||
public:
|
||||
|
||||
/**
|
||||
* @see pal::GattClient::EventHandler::on_att_mtu_change
|
||||
*/
|
||||
virtual void on_att_mtu_change(
|
||||
ble::connection_handle_t connection_handle,
|
||||
uint16_t att_mtu_size
|
||||
)
|
||||
{
|
||||
if (_eventHandler) {
|
||||
_eventHandler->onAttMtuChange(connection_handle, att_mtu_size);
|
||||
if (eventHandler) {
|
||||
eventHandler->onAttMtuChange(connection_handle, att_mtu_size);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -140,8 +143,12 @@ public:
|
|||
*/
|
||||
virtual void set_signing_event_handler(pal::SigningEventMonitor::EventHandler *signing_event_handler);
|
||||
|
||||
/**
|
||||
* Return the user registered event handler.
|
||||
* @return User registered event handler or NULL if none is present.
|
||||
*/
|
||||
::GattClient::EventHandler* getEventHandler() {
|
||||
return _eventHandler;
|
||||
return eventHandler;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -63,7 +63,7 @@ public:
|
|||
static GattServer &getInstance();
|
||||
|
||||
::GattServer::EventHandler* getEventHandler() {
|
||||
return _eventHandler;
|
||||
return eventHandler;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
void hwCallback(ble_evt_t *p_ble_evt);
|
||||
|
||||
EventHandler* getEventHandler() {
|
||||
return _eventHandler;
|
||||
return eventHandler;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
void hwCallback(const ble_evt_t *p_ble_evt);
|
||||
|
||||
EventHandler* getEventHandler() {
|
||||
return _eventHandler;
|
||||
return eventHandler;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
void hwCallback(const ble_evt_t *p_ble_evt);
|
||||
|
||||
EventHandler* getEventHandler() {
|
||||
return _eventHandler;
|
||||
return eventHandler;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue