Tizen 2.1 base
[apps/native/ug-bluetooth-efl.git] / include / bt-callback.h
1 /*
2  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Flora License, Version 1.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
7  *
8  *   http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software 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.
15  */
16
17 #ifndef __BT_CALLBACK_H
18 #define __BT_CALLBACK_H
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 #include <bluetooth.h>
25
26 void _bt_cb_state_changed(int result,
27                         bt_adapter_state_e adapter_state,
28                         void *user_data);
29
30 void _bt_cb_discovery_state_changed(int result,
31                         bt_adapter_device_discovery_state_e discovery_state,
32                         bt_adapter_device_discovery_info_s *discovery_info,
33                         void *user_data);
34
35 void _bt_cb_bonding_created(int result, bt_device_info_s *device_info,
36                                 void *user_data);
37
38 void _bt_cb_bonding_destroyed(int result, char *remote_address,
39                                         void *user_data);
40
41 void _bt_cb_service_searched(int result, bt_device_sdp_info_s *sdp_info,
42                         void *user_data);
43
44 void _bt_cb_hid_state_changed(int result, bool connected,
45                         const char *remote_address,
46                         void *user_data);
47
48 void _bt_cb_audio_state_changed(int result, bool connected,
49                                 const char *remote_address,
50                                 bt_audio_profile_type_e type,
51                                 void *user_data);
52
53 #ifdef __cplusplus
54 }
55 #endif
56 #endif                          /* __BT_CALLBACK_H */