@@ -118,7 +118,7 @@ struct ble_scan_short_name {
118118 /**
119119 * @brief Pointer to the short name.
120120 */
121- char const * short_name ;
121+ const char * short_name ;
122122 /**
123123 * @brief Minimum length of the short name.
124124 */
@@ -150,14 +150,14 @@ struct ble_scan_evt {
150150 /** Type of event. */
151151 enum ble_scan_evt_type evt_type ;
152152 /** GAP scanning parameters. These parameter are needed to establish connection. */
153- ble_gap_scan_params_t const * scan_params ;
153+ const ble_gap_scan_params_t * scan_params ;
154154 union {
155155 /** Scan filter match. */
156156 struct {
157157 /** Event structure for @ref BLE_GAP_EVT_ADV_REPORT. This data
158158 * allows the main application to establish connection.
159159 */
160- ble_gap_evt_adv_report_t const * adv_report ;
160+ const ble_gap_evt_adv_report_t * adv_report ;
161161 /** Matching filters. Information about matched filters. */
162162 struct ble_scan_filter_match filter_match ;
163163 } filter_match ;
@@ -166,17 +166,17 @@ struct ble_scan_evt {
166166 /** Advertising report event parameters for allow list. */
167167 struct {
168168 /** Advertising report */
169- ble_gap_evt_adv_report_t const * report ;
169+ const ble_gap_evt_adv_report_t * report ;
170170 } allow_list_adv_report ;
171171 /** Advertising report event parameters when filter is not found. */
172172 struct {
173173 /** Advertising report */
174- ble_gap_evt_adv_report_t const * report ;
174+ const ble_gap_evt_adv_report_t * report ;
175175 } not_found ;
176176 /** Connected event parameters. */
177177 struct {
178178 /** Connected event parameters. */
179- ble_gap_evt_connected_t const * connected ;
179+ const ble_gap_evt_connected_t * connected ;
180180 /** Connection handle of the device on which the event occurred. */
181181 uint16_t conn_handle ;
182182 } connected ;
@@ -201,7 +201,7 @@ struct ble_scan_evt {
201201/**
202202 * @brief BLE Scan event handler type.
203203 */
204- typedef void (* ble_scan_evt_handler_t )(struct ble_scan_evt const * scan_evt );
204+ typedef void (* ble_scan_evt_handler_t )(const struct ble_scan_evt * scan_evt );
205205
206206#if defined(CONFIG_BLE_SCAN_FILTER )
207207
@@ -392,7 +392,7 @@ struct ble_scan {
392392 *
393393 * @return true if allow list is used.
394394 */
395- bool is_allow_list_used (struct ble_scan const * const scan_ctx );
395+ bool is_allow_list_used (const struct ble_scan * const scan_ctx );
396396
397397/**
398398 * @brief Initialize the Scan library.
@@ -422,14 +422,14 @@ int ble_scan_init(struct ble_scan *scan, struct ble_scan_config *config);
422422 * @return This API propagates the error code returned by the
423423 * SoftDevice API @ref sd_ble_gap_scan_start.
424424 */
425- int ble_scan_start (struct ble_scan const * const scan_ctx );
425+ int ble_scan_start (const struct ble_scan * const scan_ctx );
426426
427427/**
428428 * @brief Stop scanning.
429429 *
430430 * @param[in] scan_ctx Scan library instance.
431431 */
432- void ble_scan_stop (struct ble_scan const * const scan_ctx );
432+ void ble_scan_stop (const struct ble_scan * const scan_ctx );
433433
434434#if defined(CONFIG_BLE_SCAN_FILTER )
435435
@@ -504,7 +504,7 @@ int ble_scan_filter_get(struct ble_scan *const scan_ctx, struct ble_scan_filters
504504 * @retval BLE_ERROR_GAP_INVALID_BLE_ADDR If the BLE address type is invalid.
505505 */
506506int ble_scan_filter_add (struct ble_scan * const scan_ctx , uint8_t type ,
507- void const * data );
507+ const void * data );
508508
509509/**
510510 * @brief Remove all filters.
@@ -533,15 +533,15 @@ int ble_scan_all_filter_remove(struct ble_scan *const scan_ctx);
533533 * @retval NRF_SUCCESS If parameters are changed successfully.
534534 * @retval NRF_ERROR_NULL If a NULL pointer is passed as input.
535535 */
536- int ble_scan_params_set (struct ble_scan * const scan_ctx , ble_gap_scan_params_t const * scan_params );
536+ int ble_scan_params_set (struct ble_scan * const scan_ctx , const ble_gap_scan_params_t * scan_params );
537537
538538/**
539539 * @brief Handler for BLE stack events.
540540 *
541541 * @param[in] ble_evt BLE event.
542542 * @param[in,out] scan Scan library instance.
543543 */
544- void ble_scan_on_ble_evt (ble_evt_t const * ble_evt , void * scan );
544+ void ble_scan_on_ble_evt (const ble_evt_t * ble_evt , void * scan );
545545
546546/**
547547 * @brief Convert the raw address to the SoftDevice GAP address.
@@ -559,7 +559,7 @@ void ble_scan_on_ble_evt(ble_evt_t const *ble_evt, void *scan);
559559 * @retval NRF_SUCCESS If the address is copied and converted successfully.
560560 */
561561int ble_scan_copy_addr_to_sd_gap_addr (ble_gap_addr_t * gap_addr ,
562- uint8_t const addr [BLE_GAP_ADDR_LEN ]);
562+ const uint8_t addr [BLE_GAP_ADDR_LEN ]);
563563
564564#ifdef __cplusplus
565565}
0 commit comments