2 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 #ifndef __NET_NFC_SERVER_HANDOVER_BT_H__
17 #define __NET_NFC_SERVER_HANDOVER_BT_H__
19 #include "net_nfc_typedef_internal.h"
21 typedef void (*net_nfc_server_handover_get_carrier_record_cb)(
22 net_nfc_error_e result,
23 net_nfc_conn_handover_carrier_state_e cps,
24 ndef_record_s *carrier,
25 uint32_t aux_data_count,
26 ndef_record_s *aux_data,
29 typedef void (*net_nfc_server_handover_process_carrier_record_cb)(
30 net_nfc_error_e result,
31 net_nfc_conn_handover_carrier_type_e type,
35 /* alternative carrier functions */
36 net_nfc_error_e net_nfc_server_handover_bt_get_carrier_record(
37 net_nfc_server_handover_get_carrier_record_cb cb, void *user_param);
39 net_nfc_error_e net_nfc_server_handover_bt_process_carrier_record(
40 ndef_record_s *record, net_nfc_server_handover_process_carrier_record_cb cb,
43 net_nfc_error_e net_nfc_server_handover_bt_post_process(data_s *data,
44 net_nfc_server_handover_process_carrier_record_cb cb,
47 #endif //__NET_NFC_SERVER_HANDOVER_BT_H__