TizenRT Public API  v2.0 M2
bluetooth_extension.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 
17 
18 #ifndef __TIZEN_NETWORK_BLUETOOTH_EXTENSION_H__
19 #define __TIZEN_NETWORK_BLUETOOTH_EXTENSION_H__
20 
21 #include "bluetooth_type.h"
23 
24 #ifdef __cplusplus
25 extern "C"
26 {
27 #endif /* __cplusplus */
28 
55 int bt_ag_open_sco(void);
56 
76 int bt_ag_close_sco(void);
77 
95 int bt_ag_is_sco_opened(bool *opened);
96 
115 int bt_ag_set_sco_state_changed_cb(bt_ag_sco_state_changed_cb callback, void *user_data);
116 
132 int bt_ag_unset_sco_state_changed_cb(void);
133 
155 int bt_ag_notify_voice_recognition_state(bool state);
156 
183 int bt_ag_notify_speaker_gain(int gain);
184 
206 int bt_ag_get_speaker_gain(int *gain);
207 
227 int bt_ag_set_speaker_gain_changed_cb(bt_ag_speaker_gain_changed_cb callback, void *user_data);
228 
244 int bt_ag_unset_speaker_gain_changed_cb(void);
245 
263 int bt_ag_set_microphone_gain_changed_cb(bt_ag_microphone_gain_changed_cb callback, void *user_data);
264 
280 int bt_ag_unset_microphone_gain_changed_cb(void);
281 
287 #ifdef __cplusplus
288 }
289 #endif /* __cplusplus */
290 
291 #endif /* __TIZEN_NETWORK_BLUETOOTH_EXTENSION_H__ */
292 
int bt_ag_open_sco(void)
Opens a SCO(Synchronous Connection Oriented link) to connected remote device, asynchronously. 2.3 platform http://tizen.org/privilege/bluetooth.admin.
int bt_ag_close_sco(void)
Closes an opened SCO(Synchronous Connection Oriented link), asynchronously. 2.3 platform http://ti...
void(* bt_ag_microphone_gain_changed_cb)(int gain, void *user_data)
Called when the microphone gain of the remote device is changed. 2.3.
API to control the Bluetooth adapter, devices and communications.
void(* bt_ag_speaker_gain_changed_cb)(int gain, void *user_data)
Called when the speaker gain of the remote device is changed. 2.3.
void(* bt_ag_sco_state_changed_cb)(int result, bool opened, void *user_data)
Called when the SCO(Synchronous Connection Oriented link) state is changed. 2.3. ...