111 lines
4.0 KiB
C
111 lines
4.0 KiB
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
/* declare the list of functions sorted by signature */
|
|
#define LIST_FN_SIG_NONE \
|
|
FN_SIG_NONE(on_nble_up)
|
|
|
|
#define LIST_FN_SIG_S \
|
|
FN_SIG_S(on_nble_get_version_rsp, \
|
|
const struct nble_version_response *) \
|
|
FN_SIG_S(on_nble_gap_connect_evt, \
|
|
const struct nble_gap_connect_evt *) \
|
|
FN_SIG_S(on_nble_gap_disconnect_evt, \
|
|
const struct nble_gap_disconnect_evt *) \
|
|
FN_SIG_S(on_nble_gap_conn_update_evt, \
|
|
const struct nble_gap_conn_update_evt *) \
|
|
FN_SIG_S(on_nble_gap_sm_status_evt, \
|
|
const struct nble_gap_sm_status_evt *) \
|
|
FN_SIG_S(on_nble_gap_sm_passkey_display_evt, \
|
|
const struct nble_gap_sm_passkey_disp_evt *) \
|
|
FN_SIG_S(on_nble_gap_sm_passkey_req_evt, \
|
|
const struct nble_gap_sm_passkey_req_evt *) \
|
|
FN_SIG_S(on_nble_gap_rssi_evt, \
|
|
const struct nble_gap_rssi_evt *) \
|
|
FN_SIG_S(on_nble_common_rsp, \
|
|
const struct nble_response *) \
|
|
FN_SIG_S(on_nble_gap_connect_rsp, \
|
|
const struct nble_response *) \
|
|
FN_SIG_S(on_nble_gap_cancel_connect_rsp, \
|
|
const struct nble_response *) \
|
|
FN_SIG_S(on_nble_gap_read_bda_rsp, \
|
|
const struct nble_service_read_bda_response *) \
|
|
FN_SIG_S(on_nble_gap_sm_config_rsp, \
|
|
struct nble_gap_sm_config_rsp *) \
|
|
FN_SIG_S(on_nble_gap_sm_common_rsp, \
|
|
const struct nble_gap_sm_response *) \
|
|
FN_SIG_S(on_nble_set_bda_rsp, \
|
|
const struct nble_set_bda_rsp *) \
|
|
FN_SIG_S(on_nble_gap_set_rssi_report_rsp, \
|
|
const struct nble_response *) \
|
|
FN_SIG_S(on_nble_gap_dbg_rsp, \
|
|
const struct nble_debug_resp *) \
|
|
FN_SIG_S(on_nble_gap_dir_adv_timeout_evt, \
|
|
const struct nble_gap_dir_adv_timeout_evt *) \
|
|
FN_SIG_S(on_nble_gatts_send_notif_rsp, \
|
|
const struct nble_gatt_notif_rsp *) \
|
|
FN_SIG_S(on_nble_gatts_send_ind_rsp, \
|
|
const struct nble_gatt_ind_rsp *) \
|
|
FN_SIG_S(on_nble_gap_start_advertise_rsp, \
|
|
const struct nble_response *) \
|
|
FN_SIG_S(on_nble_gap_scan_start_stop_rsp, \
|
|
const struct nble_response *) \
|
|
FN_SIG_S(on_nble_gatts_read_evt, \
|
|
const struct nble_gatt_rd_evt *) \
|
|
FN_SIG_S(on_nble_gatts_write_exec_evt, \
|
|
const struct nble_gatt_wr_exec_evt *) \
|
|
FN_SIG_S(on_nble_uas_bucket_change, \
|
|
const struct nble_uas_bucket_change *) \
|
|
FN_SIG_S(on_nble_gattc_write_rsp, \
|
|
const struct nble_gattc_write_rsp *)
|
|
|
|
#define LIST_FN_SIG_P \
|
|
FN_SIG_P(on_nble_gap_dtm_init_rsp, void *)
|
|
|
|
#define LIST_FN_SIG_S_B \
|
|
FN_SIG_S_B(nble_log, const struct nble_log_s *, char *, \
|
|
uint8_t) \
|
|
FN_SIG_S_B(on_nble_gattc_value_evt, \
|
|
const struct nble_gattc_value_evt *, \
|
|
uint8_t *, uint8_t) \
|
|
FN_SIG_S_B(on_nble_gatts_write_evt, \
|
|
const struct nble_gatt_wr_evt *, \
|
|
const uint8_t *, uint8_t) \
|
|
FN_SIG_S_B(on_nble_gatt_register_rsp, \
|
|
const struct nble_gatt_register_rsp *, \
|
|
const struct nble_gatt_attr_handles *, \
|
|
uint8_t) \
|
|
FN_SIG_S_B(on_nble_gattc_discover_rsp, \
|
|
const struct nble_gattc_discover_rsp *, \
|
|
const uint8_t *, uint8_t) \
|
|
FN_SIG_S_B(on_nble_gap_adv_report_evt, \
|
|
const struct nble_gap_adv_report_evt *, \
|
|
const uint8_t *, uint8_t) \
|
|
FN_SIG_S_B(on_nble_gap_sm_bond_info_rsp, \
|
|
const struct nble_gap_sm_bond_info_rsp *, \
|
|
const bt_addr_le_t *, uint16_t) \
|
|
FN_SIG_S_B(on_nble_gattc_read_rsp, \
|
|
const struct nble_gattc_read_rsp *, \
|
|
uint8_t *, uint8_t)
|
|
|
|
#define LIST_FN_SIG_B_B_P
|
|
|
|
#define LIST_FN_SIG_S_P
|
|
|
|
#define LIST_FN_SIG_S_B_P
|
|
|
|
#define LIST_FN_SIG_S_B_B_P
|