4 * Copyright 2012 Samsung Electronics Co., Ltd
6 * Contact: Hocheol Seo <hocheol.seo@samsung.com>
7 * GirishAshok Joshi <girish.joshi@samsung.com>
8 * DoHyun Pyun <dh79.pyun@samsung.com>
10 * Licensed under the Flora License, Version 1.1 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.tizenopensource.org/license
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
24 #ifndef __BT_CALLBACK_H
25 #define __BT_CALLBACK_H
31 #include <bluetooth.h>
33 void _bt_cb_state_changed(int result,
34 bt_adapter_state_e adapter_state,
37 void _bt_cb_discovery_state_changed(int result,
38 bt_adapter_device_discovery_state_e discovery_state,
39 bt_adapter_device_discovery_info_s *discovery_info,
41 void _bt_cb_visibility_mode_changed
42 (int result, bt_adapter_visibility_mode_e visibility_mode, void *user_data);
44 void _bt_cb_gatt_connection_state_changed(int result, bool connected, char *remote_address, void *user_data);
46 void _bt_cb_new_le_device_found(int result, bt_adapter_le_device_scan_result_info_s *info, void *data);
48 void _bt_cb_bonding_created(int result, bt_device_info_s *device_info,
51 void _bt_cb_bonding_destroyed(int result, char *remote_address,
54 void _bt_cb_service_searched(int result, bt_device_sdp_info_s *sdp_info,
57 void _bt_cb_hid_state_changed(int result, bool connected,
58 const char *remote_address,
61 void _bt_cb_audio_state_changed(int result, bool connected,
62 const char *remote_address,
63 bt_audio_profile_type_e type,
65 #ifdef TIZEN_BT_A2DP_SINK_ENABLE
66 void _bt_cb_a2dp_source_state_changed(int result, bool connected,
67 const char *remote_address,
68 bt_audio_profile_type_e type,
71 void _bt_cb_adapter_name_changed(char *device_name, void *user_data);
73 void _bt_cb_nap_state_changed(bool connected, const char *remote_address,
74 const char *interface_name, void *user_data);
76 void _bt_cb_device_connection_state_changed(bool connected,
77 bt_device_connection_info_s *conn_info,
80 void _bt_retry_connection_cb(void *data,
81 Evas_Object *obj, void *event_info);
86 #endif /* __BT_CALLBACK_H */