@@ -128,7 +128,7 @@ class GattServer {
128
128
* @note params has a temporary scope and should be copied by the
129
129
* application if needed later
130
130
*/
131
- virtual void onDataSent (const GattDataSentCallbackParams* params) {
131
+ virtual void onDataSent (const GattDataSentCallbackParams & params) {
132
132
(void )params;
133
133
}
134
134
@@ -138,7 +138,7 @@ class GattServer {
138
138
* @note params has a temporary scope and should be copied by the
139
139
* application if needed later
140
140
*/
141
- virtual void onDataWritten (const GattWriteCallbackParams * params) {
141
+ virtual void onDataWritten (const GattWriteCallbackParams & params) {
142
142
(void )params;
143
143
}
144
144
@@ -155,15 +155,15 @@ class GattServer {
155
155
* @see GattCharacteristic::setReadAuthorizationCallback()
156
156
* @see isOnDataReadAvailable().
157
157
*/
158
- virtual void onDataRead (const GattReadCallbackParams * params) {
158
+ virtual void onDataRead (const GattReadCallbackParams & params) {
159
159
(void )params;
160
160
}
161
161
162
162
/* *
163
163
* Function invoked when the GattServer instance is about
164
164
* to be shut down. This can result in a call to reset() or BLE::reset().
165
165
*/
166
- virtual void onShutdown (const GattServer * server) {
166
+ virtual void onShutdown (const GattServer & server) {
167
167
(void )server;
168
168
}
169
169
@@ -173,7 +173,7 @@ class GattServer {
173
173
* @note params has a temporary scope and should be copied by the
174
174
* application if needed later
175
175
*/
176
- virtual void onUpdatesEnabled (const GattUpdatesEnabledCallbackParams* params) {
176
+ virtual void onUpdatesEnabled (const GattUpdatesEnabledCallbackParams & params) {
177
177
(void )params;
178
178
}
179
179
@@ -183,7 +183,7 @@ class GattServer {
183
183
* @note params has a temporary scope and should be copied by the
184
184
* application if needed later
185
185
*/
186
- virtual void onUpdatesDisabled (const GattUpdatesDisabledCallbackParams* params) {
186
+ virtual void onUpdatesDisabled (const GattUpdatesDisabledCallbackParams & params) {
187
187
(void )params;
188
188
}
189
189
@@ -194,7 +194,7 @@ class GattServer {
194
194
* @note params has a temporary scope and should be copied by the
195
195
* application if needed later
196
196
*/
197
- virtual void onConfirmationReceived (const GattConfirmationReceivedCallbackParams* params) {
197
+ virtual void onConfirmationReceived (const GattConfirmationReceivedCallbackParams & params) {
198
198
(void )params;
199
199
}
200
200
0 commit comments