TizenRT Public API  v2.0 M2
bluetooth_internal.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_INTERNAL_H__
19 #define __TIZEN_NETWORK_BLUETOOTH_INTERNAL_H__
20 
21 #ifdef GLIB_SUPPORTED
22 #include <glib.h>
23 #endif
24 #include "bluetooth_type.h"
26 
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif /* __cplusplus */
31 
65 int bt_adapter_enable(void);
66 
96 int bt_adapter_disable(void);
97 
125 int bt_adapter_recover(void);
126 
171 int bt_adapter_reset(void);
172 
193 int bt_adapter_get_version(char **local_version);
194 
218 int bt_adapter_get_local_info(char **chipset, char **firmware, char **stack_version, char **profiles);
219 
252 int bt_adapter_set_visibility(bt_adapter_visibility_mode_e discoverable_mode, int duration);
253 
269 int bt_adapter_set_authentication_req_cb(bt_adapter_authentication_req_cb callback, void *user_data);
270 
282 
294 int bt_adapter_passkey_reply(char *passkey, bool authentication_reply);
295 
308 int bt_adapter_passkey_confirmation_reply(bool confirmation_reply);
309 
332 int bt_adapter_set_connectable_changed_cb(bt_adapter_connectable_changed_cb callback, void *user_data);
333 
350 int bt_adapter_unset_connectable_changed_cb(void);
351 
374 int bt_adapter_get_connectable(bool *connectable);
375 
404 int bt_adapter_set_connectable(bool connectable);
405 
434 int bt_adapter_set_manufacturer_data(char *data, int len);
435 
458 int bt_adapter_parse_manufacturer_data(bt_manufacturer_data *data,
459  char *manufacturer_data, int manufacturer_data_len);
460 
475 int bt_adapter_free_manufacturer_data(bt_manufacturer_data *data);
476 
499 int bt_adapter_set_manufacturer_data_changed_cb(
501  void *user_data);
502 
519 int bt_adapter_unset_manufacturer_data_changed_cb(void);
520 
549 int bt_adapter_le_enable(void);
550 
580 int bt_adapter_le_disable(void);
581 
600 int bt_adapter_le_get_state(bt_adapter_le_state_e *adapter_le_state);
601 
624 int bt_adapter_le_set_state_changed_cb(bt_adapter_le_state_changed_cb callback, void *user_data);
625 
642 int bt_adapter_le_unset_state_changed_cb(void);
643 
674 int bt_adapter_le_add_white_list(const char *address, bt_device_address_type_e address_type);
675 
706 int bt_adapter_le_remove_white_list(const char *address, bt_device_address_type_e address_type);
707 
730 int bt_adapter_le_enable_privacy(bool enable_privacy);
731 
758 int bt_adapter_le_set_remote_oob_ext_data(const char *remote_address,
759  bt_device_address_type_e address_type,
760  const unsigned char *hash256, const unsigned char *randomizer256,
761  int hash256_len, int randomizer256_len);
762 
763 
788 
814 int bt_adapter_foreach_profile_connected_devices(const char *profile_uuid,
815  bt_adapter_profile_connected_devices_cb callback, void *user_data);
816 
838 int bt_device_disconnect(const char *remote_address);
839 
857 int bt_device_get_connection_state(const char *remote_address, bt_device_connection_link_type_e link_type, bool *connected);
858 
895 int bt_device_create_bond_by_type(const char *remote_address,
897 
923 int bt_device_cancel_service_search(void);
924 
942 int bt_device_get_connection_state(const char *remote_address, bt_device_connection_link_type_e link_type, bool *connected);
943 
963 int bt_device_set_profile_restricted(const char *device_address, bt_restricted_profile_t profile, bool restricted);
964 
982 int bt_device_get_profile_restricted(const char *device_address, bt_restricted_profile_t profile, int *restricted);
983 
998 int bt_device_set_profile_trusted(const char *device_address, bt_trusted_profile_t profile, bool trust);
999 
1012 int bt_device_get_profile_trusted(const char *device_address, bt_trusted_profile_t profile, int *trust);
1013 
1024 int bt_device_set_trusted_profile_cb(bt_device_trusted_profiles_cb callback, void *user_data);
1025 
1035 int bt_device_unset_trusted_profile_cb(void);
1036 
1057 int bt_device_request_att_mtu(const char *remote_address, unsigned int mtu) TIZEN_DEPRECATED_API;
1058 
1079 int bt_device_get_att_mtu(const char *remote_address, unsigned int *mtu) TIZEN_DEPRECATED_API;
1080 
1099 int bt_device_set_att_mtu_changed_cb(bt_device_att_mtu_changed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
1100 
1115 int bt_device_unset_att_mtu_changed_cb(void) TIZEN_DEPRECATED_API;
1116 
1147 int bt_socket_create_rfcomm_ex(const char *uuid, const char *bus_name, const char *object_path);
1148 
1177 int bt_socket_destroy_rfcomm_ex(const char *uuid);
1178 
1210 int bt_socket_listen_and_accept_rfcomm_ex(const char *uuid, int max_pending_connections, const char* bus_name, const char *object_path);
1211 
1241 int bt_socket_listen(int socket_fd, int max_pending_connections);
1242 
1266 int bt_socket_accept(int requested_socket_fd);
1267 
1291 int bt_socket_reject(int socket_fd);
1292 
1320 int bt_opp_server_initialize(const char *destination, bt_opp_server_push_requested_cb push_requested_cb, void *user_data);
1321 
1335 int bt_opp_get_transfer_progress(bt_opp_transfer_type_t transfer_type,
1336  int transfer_id, unsigned char *progress);
1337 
1363 int bt_ag_notify_call_event(bt_ag_call_event_e event, unsigned int call_id, const char *phone_number);
1364 
1386 int bt_ag_notify_call_list(bt_call_list_h list);
1387 
1409 int bt_ag_notify_voice_recognition_state(bool state);
1410 
1429 int bt_ag_set_call_handling_event_cb(bt_ag_call_handling_event_cb callback, void *user_data);
1430 
1446 int bt_ag_unset_call_handling_event_cb(void);
1447 
1466 int bt_ag_set_multi_call_handling_event_cb(bt_ag_multi_call_handling_event_cb callback, void *user_data);
1467 
1483 int bt_ag_unset_multi_call_handling_event_cb(void);
1484 
1503 int bt_ag_set_dtmf_transmitted_cb(bt_ag_dtmf_transmitted_cb callback, void *user_data);
1504 
1520 int bt_ag_unset_dtmf_transmitted_cb(void);
1521 
1539 int bt_ag_is_nrec_enabled(bool *enabled);
1540 
1555 int bt_call_list_create(bt_call_list_h *list);
1556 
1570 int bt_call_list_destroy(bt_call_list_h list);
1571 
1585 int bt_call_list_reset(bt_call_list_h list);
1586 
1604 int bt_call_list_add(bt_call_list_h list, unsigned int call_id, bt_ag_call_state_e state, const char *phone_number);
1605 
1622 int bt_ag_set_vendor_cmd_cb(bt_ag_vendor_cmd_cb callback, void *user_data);
1623 
1637 int bt_ag_unset_vendor_cmd_cb(void);
1638 
1654 int bt_ag_is_wbs_mode(bool *wbs_mode);
1655 
1670 int bt_ag_is_connected(bool *connected);
1671 
1687 int bt_ag_switch_headset(const char *remote_addr);
1688 
1705 int bt_hf_set_sco_state_changed_cb(bt_hf_sco_state_changed_cb callback, void *user_data);
1706 
1721 
1738 int bt_hf_set_call_handling_event_cb(bt_hf_call_handling_event_cb callback, void *user_data);
1739 
1754 
1771 int bt_hf_set_remote_call_event_cb(bt_hf_remote_call_event_cb callback, void *user_data);
1772 
1787 
1805 
1820 
1834 int bt_hf_initialize(void);
1835 
1848 int bt_hf_deinitialize(void);
1849 
1873 int bt_hf_notify_call_event(bt_hf_call_event_e event, char *phone_number);
1874 
1899 int bt_hf_notify_speaker_gain(int gain);
1900 
1919 
1934 
1954 int bt_hf_notify_voice_recognition_state(bool state);
1955 
1971 #ifdef GLIB_SUPPORTED
1972 int bt_hf_set_call_status_updated_event_cb(bt_hf_call_status_updated_event_cb callback, void *user_data);
1973 #endif
1974 
1988 
2002 int bt_hf_close_sco(void);
2003 
2020 int bt_hf_send_dtmf(char *dtmf);
2021 
2036 int bt_hf_is_connected(bool *connected);
2037 
2055 int bt_hf_is_sco_opened(bool *opened);
2056 
2075 int bt_hf_get_codec_id(unsigned int *codec_id);
2076 
2097 #ifdef GLIB_SUPPORTED
2098 int bt_hf_get_call_status_info_list(GSList **call_list);
2099 #endif
2100 
2115 #ifdef GLIB_SUPPORTED
2116 int bt_hf_free_call_status_info_list(GSList *call_list);
2117 #endif
2118 
2143 
2162 int bt_hf_is_inband_ringtone_supported(bool *supported);
2163 
2177 int bt_a2dp_set_content_protection(bool status);
2178 
2179 
2202 
2203 
2221 int bt_gatt_get_uuid_specification_name(const char *uuid, char **name);
2222 
2239 int bt_gatt_set_permissions(bt_gatt_h gatt_handle, int permissions);
2240 
2255 int bt_gatt_characteristic_set_properties(bt_gatt_h characteristic, int properties);
2256 
2272 int bt_gatt_destroy(bt_gatt_h gatt_handle);
2273 
2291 
2307 
2327 int bt_nap_activate(void);
2328 
2348 int bt_nap_deactivate(void);
2349 
2368 int bt_nap_disconnect_all(void);
2369 
2389 int bt_nap_disconnect(const char *remote_address);
2390 
2410 int bt_nap_set_connection_state_changed_cb(bt_nap_connection_state_changed_cb callback, void *user_data);
2411 
2428 int bt_nap_unset_connection_state_changed_cb(void);
2429 
2449 int bt_panu_set_connection_state_changed_cb(bt_panu_connection_state_changed_cb callback, void *user_data);
2450 
2467 int bt_panu_unset_connection_state_changed_cb(void);
2468 
2493 int bt_panu_connect(const char *remote_address, bt_panu_service_type_e type);
2494 
2519 int bt_panu_disconnect(const char *remote_address);
2520 
2537 int bt_device_le_conn_update(const char *device_address,
2538  const bt_le_conn_update_s *parameters);
2539 
2559 int bt_adapter_get_bonded_device_is_alias_set(const char *remote_address, bool *is_alias_set);
2560 
2588 
2612 int bt_hid_device_deactivate(void);
2613 
2639 int bt_hid_device_connect(const char *remote_address);
2640 
2661 int bt_hid_device_disconnect(const char *remote_address);
2662 
2682 int bt_hid_device_send_mouse_event(const char *remote_address,
2683  const bt_hid_mouse_data_s *mouse_data);
2684 
2704 int bt_hid_device_send_key_event(const char *remote_address,
2705  const bt_hid_key_data_s *key_data);
2706 
2721 
2733 
2755 int bt_hid_device_reply_to_report(const char *remote_address,
2756  bt_hid_header_type_e header_type, bt_hid_param_type_e param_type,
2757  const char *data, unsigned int data_len);
2758 
2780 int bt_hid_device_send_custom_event(const char *remote_address,
2781  unsigned char report_id, const char *data, unsigned int data_len);
2782 
2805 
2829 
2850 
2871 
2892 
2913 
2931 int bt_dpm_add_devices_to_blacklist(const char *device_address);
2932 
2950 int bt_dpm_add_devices_to_whitelist(const char *device_address);
2951 
2969 int bt_dpm_add_uuids_to_blacklist(const char *service_uuid);
2970 
2988 int bt_dpm_add_uuids_to_whitelist(const char *service_uuid);
2989 
3008 
3027 
3046 
3065 
3084 
3103 
3122 
3141 
3159 int bt_dpm_remove_device_from_whitelist(const char *device_address);
3160 
3178 int bt_dpm_remove_device_from_blacklist(const char *device_address);
3179 
3197 int bt_dpm_remove_uuid_from_whitelist(const char *service_uuid);
3198 
3216 int bt_dpm_remove_uuid_from_blacklist(const char *service_uuid);
3217 
3238 
3259 
3280 
3301 
3331 
3364 
3385 
3406 
3427 
3448 
3470 
3491 
3512 
3533 
3551 int bt_pbap_client_is_connected(const char *address, bool *connected_status);
3552 
3574 int bt_hid_device_send_custom_event(const char *remote_address,
3575  unsigned char report_id, const char *data, unsigned int data_len);
3576 
3598 int bt_avrcp_control_set_absolute_volume(unsigned int value);
3599 
3621 
3643 
3665 int bt_avrcp_control_send_delay_report(unsigned int value);
3666 
3683 int bt_avrcp_set_delay_changed_cb(bt_avrcp_delay_changed_cb callback, void *user_data);
3684 
3700 
3716 
3730 
3745 int bt_proximity_monitor_create(const char *remote_address, bt_proximity_monitor_h *monitor);
3746 
3760 
3774 
3788 
3804  bt_proximity_monitor_connection_state_changed_cb callback, void *user_data);
3805 
3819 
3834  bt_proximity_reporter_connection_state_changed_cb callback, void *user_data);
3835 
3848 
3863  bt_proximity_reporter_property_changed_cb callback, void *user_data);
3864 
3877 
3893 
3909 
3925 
3941 
3957 
3972 int bt_proximity_reporter_get_linkloss_alert(const char *remote_address, int *value);
3973 
3988 int bt_proximity_reporter_get_immediate_alert(const char *remote_address, int *value);
3989 
3990 /* This internal API will be removed */
3996 int bt_adapter_le_scan_filter_unset_proximity_uuid(bt_scan_filter_h scan_filter) TIZEN_DEPRECATED_API;
3997 
4018 int bt_tds_provider_register(void);
4019 
4041 int bt_tds_provider_unregister(void);
4042 
4067 int bt_tds_provider_create(bt_tds_provider_h *provider, bt_tds_transport_e transport);
4068 
4092 int bt_tds_provider_destroy(bt_tds_provider_h provider);
4093 
4120 int bt_tds_provider_set_transport_data(bt_tds_provider_h provider,
4121  bt_tds_transport_state_e transport_state, unsigned char *buf, int length);
4122 
4146 int bt_tds_provider_set_manufacturer_data(unsigned char *buf, int length);
4147 
4177 int bt_tds_provider_send_activation_resp(char *address, int result, bt_tds_provider_h provider);
4178 
4202 int bt_tds_set_transport_activation_requested_cb(
4203  bt_tds_activation_requested_cb callback, void *user_data);
4204 
4221 int bt_tds_unset_transport_activation_requested_cb(void);
4222 
4227 int bt_tds_start_seeking_providers(bt_tds_provider_scan_result_cb cb, void *user_data);
4228 
4233 int bt_tds_stop_seeking_providers(void);
4234 
4239 int bt_tds_seeker_create(const char *remote_address, bt_tds_seeker_h *seeker);
4240 
4245 int bt_tds_seeker_destroy(bt_tds_seeker_h seeker);
4246 
4251 int bt_tds_seeker_set_connection_state_changed_cb(bt_tds_seeker_h seeker,
4252  bt_tds_seeker_connection_state_changed_cb callback, void *user_data);
4253 
4258 int bt_tds_seeker_unset_connection_state_changed_cb(bt_tds_seeker_h seeker);
4259 
4264 int bt_tds_seeker_connect(bt_tds_seeker_h seeker);
4265 
4270 int bt_tds_seeker_disconnect(bt_tds_seeker_h seeker);
4271 
4276 int bt_tds_seeker_get_complete_transport_blocks(bt_tds_seeker_h seeker,
4277  bt_tds_seeker_complete_transport_data_cb callback, void *user_data);
4278 
4283 int bt_tds_seeker_activate_control_point(bt_tds_seeker_h seeker,
4284  bt_tds_transport_e transport, unsigned char *buffer, int len,
4285  bt_tds_control_point_activation_indication_cb callback, void *user_data);
4286 
4291 int bt_otp_server_initialize(const char *directory);
4292 
4297 int bt_otp_server_deinitialize(void);
4298 
4303 int bt_otp_set_server_state_changed_cb(bt_otp_server_state_changed_cb callback, void *user_data);
4304 
4310 
4315 int bt_otp_client_create(const char *remote_address, bt_otp_client_h *otp_client);
4316 
4321 int bt_otp_client_destroy(bt_otp_client_h otp_client);
4322 
4327 int bt_otp_client_set_connection_state_changed_cb(bt_otp_client_h otp_client,
4328  bt_otp_client_state_changed_cb callback, void *user_data);
4329 
4334 int bt_otp_client_unset_connection_state_changed_cb(bt_otp_client_h otp_client);
4335 
4340 int bt_otp_client_connect(bt_otp_client_h otp_client);
4341 
4346 int bt_otp_client_disconnect(bt_otp_client_h otp_client);
4347 
4352 int bt_otp_client_discover_all_objects(bt_otp_client_h otp_client,
4353  bt_otp_client_object_discovery_cb callback, void *user_data);
4354 
4359 int bt_otp_client_select_object(bt_otp_client_h otp_client, unsigned long long id,
4360  bt_otp_client_object_select_cb callback, void *user_data);
4365 int bt_otp_client_read_object_contents(bt_otp_client_h otp_client,
4366  bt_otp_client_read_object_complete_cb callback, void *user_data);
4371 int bt_otp_client_create_object(bt_otp_client_h otp_client,
4372  const char *file_path,
4373  bt_otp_client_object_create_cb callback,
4374  void *user_data);
4379 int bt_otp_client_write_object(bt_otp_client_h otp_client,
4380  const char *file_path,
4381  int offset, int length, int mode,
4382  bt_otp_client_object_write_cb callback,
4383  void *user_data);
4388 int bt_otp_client_execute_object(bt_otp_client_h otp_client,
4389  bt_otp_client_object_execute_cb callback,
4390  void *user_data);
4395 int bt_otp_client_delete_object(bt_otp_client_h otp_client,
4396  bt_otp_client_object_delete_cb callback,
4397  void *user_data);
4398 
4399 //======================================================================================
4400 
4405 int bt_hrp_sensor_set_heartrate_value(int heartrate);
4406 
4411 int bt_hrp_sensor_set_location_value(bt_body_sensor_location_e location);
4412 
4417 int bt_hrp_sensor_set_energy_value(int energy_value);
4418 
4424 int bt_hrp_sensor_set_rr_interval(int interval);
4425 
4431 int bt_hrp_sensor_set_contact_value(bool enable);
4432 
4437 int bt_hrp_sensor_set_device_manufacturer_name(char *manuf_name);
4438 
4444 int bt_hrp_sensor_create(void);
4445 
4451 int bt_hrp_sensor_destroy(void);
4452 
4458 int bt_hrp_collector_create(const char *remote_address,
4459  bt_hrp_collector_h *collector);
4460 
4465 int bt_hrp_collector_destory(bt_hrp_collector_h collector);
4466 
4471 int bt_hrp_collector_start_scan(bt_hrp_collector_scan_result_cb cb, void *user_data);
4472 
4477 int bt_hrp_collector_stop_scan(void);
4478 
4483 int bt_hrp_collector_connect(bt_hrp_collector_h collector);
4484 
4489 int bt_hrp_collector_disconnect(bt_hrp_collector_h collector);
4490 
4495 int bt_hrp_collector_set_notification(bt_hrp_collector_h collector,
4497  bool isNotify);
4498 
4504 int bt_hrp_collector_get_body_sensor_location(bt_hrp_collector_h collector,
4506 
4507 
4513 int bt_hrp_collector_set_connection_state_changed_cb(bt_hrp_collector_h collector,
4514  bt_hrp_collector_connection_state_changed_cb callback,
4515  void *user_data);
4516 
4522 int bt_hrp_collector_unset_connection_state_changed_cb(bt_hrp_collector_h collector);
4523 
4529 #ifdef __cplusplus
4530 }
4531 #endif /* __cplusplus */
4532 
4533 #endif /* __TIZEN_NETWORK_BLUETOOTH_INTERNAL_H__ */
void(* bt_hf_multi_call_handling_event_cb)(bt_hf_multi_call_handling_event_e event, void *user_data)
Called when a multi call handling event happened from Hands-Free. .
int bt_dpm_is_device_restriction_active(bt_dpm_status_e *value)
Reads the Restriction for device. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_hf_is_connected(bool *connected)
Gets the HF(Hands-Free) profile connected status for HF role. .
bt_adapter_le_state_e
Enumerations of the Bluetooth adapter le state. 2.3.
int bt_dpm_clear_uuids_from_whitelist(void)
Clears the uuids from whitelist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_avrcp_control_send_delay_report(unsigned int value)
Sends the delay report to the remote device. 5.0 platform http://tizen.org/privilege/bluetooth.admin.
bt_dpm_allow_e
Called when a call status updated event happened from Hands-Free. .
int bt_adapter_set_authentication_req_cb(bt_adapter_authentication_req_cb callback, void *user_data)
Registers a callback function that will be invoked when remote device requests authentication.
int bt_proximity_monitor_set_immediate_alert(bt_proximity_monitor_h monitor, int value)
Set the Proximity Profile monitor immediate alert value. 4.0 public http://tizen.org/privilege/bluetooth.
void(* bt_adapter_manufacturer_data_changed_cb)(char *data, int len, void *user_data)
Called when the manufacturer dat changes. 2.3.
bt_audio_role_e
Enumerations of the Bluetooth A2DP role. 4.0.
bt_hf_call_event_e
Enumerations for the call state .
int bt_dpm_activate_uuid_restriction(bt_dpm_status_e value)
Sets the Restriction for uuid. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
void(* bt_ag_call_handling_event_cb)(bt_ag_call_handling_event_e event, unsigned int call_id, void *user_data)
Called when a call handling event happened from Hands-Free. 2.3.
int bt_adapter_passkey_confirmation_reply(bool confirmation_reply)
API to reply to the PASSKEY confirmation for on-going pairing with remote device. ...
int bt_proximity_monitor_disconnect(bt_proximity_monitor_h monitor)
Proximity Monitor disconnects with the remote reporter device. 4.0 public http://tizen.org/privilege/bluetooth.
void * bt_advertiser_h
The handle to control Bluetooth LE advertising. 2.3.
void * bt_proximity_reporter_h
The handle of a Proximity Reporter server. 4.0.
void(* bt_hrp_collector_heart_rate_value_changed_cb)(bt_gatt_client_h characteristic, unsigned short hr_value, void *user_data)
Called when a value of a watched characteristic&#39;s GATT handle has been changed in HRP...
int bt_dpm_get_devices_from_whitelist(bt_dpm_device_list_s **device_list)
Reads the devices from whitelist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_proximity_reporter_get_linkloss_alert(const char *remote_address, int *value)
Read the Proximity Profile reporter linkloss alert value. 4.0 public http://tizen.org/privilege/bluetooth.
void(* bt_hf_remote_call_event_cb)(bt_hf_remote_call_event_e event, char *phone_number, void *user_data)
Called when a call event happend from Audio-Gateway device .
int bt_dpm_get_limited_discoverable_state(bt_dpm_status_e *value)
Reads the Restriction for limited discoverable mode. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
void(* bt_avrcp_delay_changed_cb)(unsigned int delay, void *user_data)
Called when the delay is changed by the remote device. 5.0.
void * bt_call_list_h
The handle of calls state. 2.3.
bt_device_address_type_e
Enumerations of device address type. 2.3.
int bt_proximity_monitor_unset_connection_state_changed_cb(bt_proximity_monitor_h monitor)
Unsets proximity monitor connection state changed event change callback. 4.0 public http://tizen...
int bt_dpm_set_pairing_state(bt_dpm_status_e value)
Sets the Restriction for pairing. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_ag_is_connected(bool *connected)
Gets the HF(Hands-Free) profile connected status for AG role. 2.4.
int bt_dpm_set_profile_state(bt_dpm_profile_e profile, bt_dpm_status_e value)
Sets the Restriction for profiles. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
bt_avrcp_player_command_e
Enumeration for the player control commands. 3.0.
int bt_hf_set_remote_call_event_cb(bt_hf_remote_call_event_cb callback, void *user_data)
Registers a callback function that will be invoked when a call event happend from Audio-Gateway devic...
int bt_proximity_reporter_create(bt_proximity_reporter_h *reporter)
Creates the Proximity Profile Reporter Role. 4.0 public http://tizen.org/privilege/bluetooth.
int bt_proximity_reporter_get_immediate_alert(const char *remote_address, int *value)
Read the Proximity Profile reporter immediate alert value. 4.0 public http://tizen.org/privilege/bluetooth.
int bt_a2dp_source_audio_unset_connection_state_changed_cb(void)
Unregisters a callback function that will be invoked when the A2DP Source connection state is changed...
int bt_device_request_att_mtu(const char *remote_address, unsigned int mtu) TIZEN_DEPRECATED_API
Request to change ATT MTU value 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_dpm_add_devices_to_whitelist(const char *device_address)
Adds the device to whitelist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_hid_device_send_custom_event(const char *remote_address, unsigned char report_id, const char *data, unsigned int data_len)
Sends the custom event data. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_hf_unset_speaker_gain_changed_cb(void)
Unregisters a callback function that will be invoked when the speaker gain of the remote device is ch...
int bt_proximity_monitor_create(const char *remote_address, bt_proximity_monitor_h *monitor)
Creates the Proximity Profile Monitor Role. 4.0 public http://tizen.org/privilege/bluetooth.
int bt_audio_select_role(bt_audio_role_e role)
A2DP source/sink role is switched using this API 4.0.
int bt_hf_initialize(void)
Initializes the Bluetooth HF profile related with audio. .
int bt_proximity_reporter_unset_property_changed_cb(bt_proximity_reporter_h reporter)
Unsets proximity reporter properties change callback. 4.0 public http://tizen.org/privilege/blueto...
bt_dpm_profile_e
DPM Profile states 3.0.
void(* bt_adapter_le_state_changed_cb)(int result, bt_adapter_le_state_e adapter_le_state, void *user_data)
Called when the Bluetooth adapter le state changes. 2.3.
int bt_ag_switch_headset(const char *remote_addr)
Switch between the connected headsets for AG role. 3.0.
int bt_avrcp_control_send_player_command_to(bt_avrcp_player_command_e cmd, char *remote_address)
Sends a command to the target device. 5.5 platform http://tizen.org/privilege/bluetooth.admin.
int bt_hf_deinitialize(void)
Deinitializes the Bluetooth HF profile related with audio. .
void * bt_tds_seeker_h
The handle of a TDS Seeker client which is associated with a remote TDS provider 3...
int bt_proximity_reporter_unset_connection_state_changed_cb(bt_proximity_reporter_h reporter)
Unsets proximity reporter connection state changed event change callback. 4.0 public http://tizen...
int bt_gatt_destroy(bt_gatt_h gatt_handle)
Destroys the GATT handle 2.4.
int bt_hid_device_set_data_received_cb(bt_hid_device_data_received_cb callback, void *user_data)
Sets the callback when device gets some data from HID Host. 2.3.1.
The structure type containing the HID keyboard event information.
void(* bt_hid_device_data_received_cb)(const bt_hid_device_received_data_s *data, void *user_data)
Called when the HID Device receives data from the HID Host.
int bt_ag_is_wbs_mode(bool *wbs_mode)
Checks whether the remoted device is wbs (Wide Band Speech) mode or not. .
int bt_hf_set_speaker_gain_changed_cb(bt_hf_speaker_gain_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the speaker gain of the remote device is chan...
int bt_hf_notify_call_event(bt_hf_call_event_e event, char *phone_number)
Notifies the call event to the remote bluetooth device. platform http://tizen.org/privilege/blueto...
int bt_dpm_activate_device_restriction(bt_dpm_status_e value)
Sets the Restriction for device. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
void(* bt_hf_sco_state_changed_cb)(int result, bool opened, void *user_data)
Called when the SCO(Synchronous Connection Oriented link) state is changed. .
void * bt_gatt_h
The handle of a service, characteristic or descriptor. 2.3.1.
int bt_hid_device_unset_data_received_cb(void)
Unsets the callback when device gets some data from HID Host. 2.3.1.
bt_tds_transport_state_e
void(* bt_hid_device_connection_state_changed_cb)(int result, bool connected, const char *remote_address, void *user_data)
Called when the Bluetooth HID Device connection state changes.
int bt_dpm_add_uuids_to_whitelist(const char *service_uuid)
Adds the uuid to whitelist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_hf_unset_sco_state_changed_cb(void)
Unregisters a callback function that will be invoked when the SCO(Synchronous Connection Oriented lin...
int bt_hf_is_inband_ringtone_supported(bool *supported)
Checks whether the remote AG device supports inband ringtone or not. .
int bt_avrcp_set_delay_changed_cb(bt_avrcp_delay_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the delay is changed. 5.0.
int bt_dpm_remove_device_from_blacklist(const char *device_address)
Removes the devices from blacklist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_hf_request_call_status_info_list(void)
Gets the call status information list. .
int bt_gatt_set_permissions(bt_gatt_h gatt_handle, int permissions)
Updates the permissions which a characteristic or descriptor&#39;s GATT handle has. 3.0.
void(* bt_proximity_monitor_connection_state_changed_cb)(int result, const char *remote_address, bt_proximity_monitor_h monitor, bool connected, int supported_service, void *user_data)
Called when the Proximity monitor profile connection state is changed. 4.0.
int bt_hf_unset_remote_call_event_cb(void)
Unregisters a callback function. 3.0.
int bt_dpm_get_allow_outgoing_call(bt_dpm_status_e *value)
Reads the Restriction for outgoing call. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
void(* bt_audio_connection_state_changed_cb)(int result, bool connected, const char *remote_address, bt_audio_profile_type_e type, void *user_data)
Called when the connection state is changed.
int bt_otp_server_initialize(const char *directory)
Starts OTP server on the given directory location.
int bt_a2dp_source_audio_set_connection_state_changed_cb(bt_audio_connection_state_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the A2DP Source connection state is changed...
int bt_gatt_characteristic_set_properties(bt_gatt_h characteristic, int properties)
Updates the properties which a characteristic&#39;s GATT handle has. 3.0.
Device LE connection update structure. 2.3.
int bt_dpm_get_allow_bluetooth_mode(bt_dpm_allow_e *value)
Reads Restriction for BT mode(BT allowed or not). 3.0 platform http://tizen.org/privilege/bluetoot...
void(* bt_hrp_collector_scan_result_cb)(int result, bt_adapter_le_device_scan_result_info_s *info, void *user_data)
Called when the LE advertisement callback for HRP sensor has been found. 4.0.
int bt_hid_device_send_key_event(const char *remote_address, const bt_hid_key_data_s *key_data)
Sends the keyboard event data. 2.3.1 platform http://tizen.org/privilege/bluetooth.admin.
int bt_dpm_get_data_transfer_state(bt_dpm_status_e *value)
Reads the Restriction for Data transfer. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
bt_hid_header_type_e
Enumerations of the Bluetooth HID header type. .
int bt_hf_send_dtmf(char *dtmf)
Sends the DTMF(Dual Tone Multi Frequency). platform http://tizen.org/privilege/bluetooth.admin.
int bt_dpm_clear_devices_from_blacklist(void)
Clears the device from blacklist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
void(* bt_hf_call_handling_event_cb)(bt_hf_call_handling_event_e event, char *phone_number, void *user_data)
Called when a call handling event happened from Hands-Free. .
void(* bt_adapter_connectable_changed_cb)(int result, bool connectable, void *user_data)
Called when the connectable state changes. 2.3.
int bt_adapter_le_set_remote_oob_ext_data(const char *remote_address, bt_device_address_type_e address_type, const unsigned char *hash256, const unsigned char *randomizer256, int hash256_len, int randomizer256_len)
Sets the Hash and Randomizer value, synchronously for LE OOB pairing. 4.0 platform http://tizen...
int bt_hid_device_deactivate(void)
Unregisters the method for HID Device role 2.3.1 platform http://tizen.org/privilege/bluetooth.admin.
int bt_avrcp_control_decrease_volume(void)
Sends the volume down request to the remote device. 5.0 platform http://tizen.org/privilege/blueto...
int bt_dpm_remove_device_from_whitelist(const char *device_address)
Removes the devices from whitelist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_hf_get_codec_id(unsigned int *codec_id)
Gets the codec ID. .
int bt_hid_device_reply_to_report(const char *remote_address, bt_hid_header_type_e header_type, bt_hid_param_type_e param_type, const char *data, unsigned int data_len)
Responds to the reports from HID Host. 2.3.1 platform http://tizen.org/privilege/bluetooth.admin.
int bt_avrcp_control_increase_volume(void)
Sends the volume up request to the remote device. 5.0 platform http://tizen.org/privilege/bluetoot...
int bt_adapter_le_set_advertising_filter_policy(bt_advertiser_h advertiser, bt_adapter_le_advertising_filter_policy_e filter_policy)
Set advertising filter policy to use white list 2.4 public http://tizen.org/privilege/bluetooth.
int bt_dpm_get_devices_from_blacklist(bt_dpm_device_list_s **device_list)
Reads the devices from blacklist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_dpm_get_profile_state(bt_dpm_profile_e profile, bt_dpm_status_e *value)
Reads the Restriction for profiles. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_ag_unset_vendor_cmd_cb(void)
Unregisters a callback function that will be invoked when a XSATvendor AT command is transmitted from...
bt_panu_service_type_e
Enumerations for the types of PAN (Personal Area Networking) service. 2.3.
int bt_otp_server_deinitialize(void)
Stops OTP server.
bt_ag_call_event_e
Enumerations for the call state 2.3.
int bt_proximity_monitor_get_linkloss_alert(bt_proximity_monitor_h monitor, int *value)
Read the Proximity Profile monitor linkloss alert value. 4.0 public http://tizen.org/privilege/bluetooth.
int bt_proximity_monitor_get_immediate_alert(bt_proximity_monitor_h monitor, int *value)
Read the Proximity Profile monitor immediate alert value. 4.0 public http://tizen.org/privilege/bluetooth.
int bt_hf_is_sco_opened(bool *opened)
Checks whether an opened SCO(Synchronous Connection Oriented link) exists or not. ...
int bt_dpm_remove_uuid_from_whitelist(const char *service_uuid)
Removes the uuids from whitelist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_hf_unset_call_status_updated_event_cb(void)
Registers a callback function that will be invoked when a call status event happened from Hands-Free...
int bt_a2dp_set_content_protection(bool status)
Sets copy protection. streaming application that needs to have the copy protection for the streaming ...
void(* bt_device_trusted_profiles_cb)(int result, char *remote_address, int trusted_profile, bool supported, bool trusted, void *user_data)
Called when Trusted Profiles is changed. 3.0.
API to control the Bluetooth adapter, devices and communications.
int bt_dpm_get_desktop_connectivity_state(bt_dpm_status_e *value)
Reads the Restriction for desktop connectivity. 3.0 platform http://tizen.org/privilege/bluetooth...
int bt_dpm_set_allow_bluetooth_mode(bt_dpm_allow_e value)
Sets Restriction for BT mode(BT allowed or not). 3.0 platform http://tizen.org/privilege/bluetooth...
int bt_proximity_monitor_set_connection_state_changed_cb(bt_proximity_monitor_h monitor, bt_proximity_monitor_connection_state_changed_cb callback, void *user_data)
Sets proximity monitor connection state changed event change callback. 4.0 public http://tizen...
int bt_avrcp_unset_delay_changed_cb(void)
Unregisters a callback function that will be invoked when the delay is changed. 5.0.
int bt_proximity_monitor_get_signal_level(bt_proximity_monitor_h monitor, int *value)
Read the Proximity Profile monitor Signal level value. 4.0 public http://tizen.org/privilege/bluetooth.
void(* bt_device_att_mtu_changed_cb)(int result, bt_device_att_mtu_info_s *mtu_info, void *user_data)
Called when the connection state is changed. 3.0.
int bt_device_set_att_mtu_changed_cb(bt_device_att_mtu_changed_cb callback, void *user_data) TIZEN_DEPRECATED_API
Registers a callback function to be invoked when the ATT MTU is changed. 3.0.
int bt_dpm_set_data_transfer_state(bt_dpm_status_e value)
Sets the Restriction for Data transfer. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_hf_unset_call_handling_event_cb(void)
Unregisters a callback function that will be invoked when a call handling event happened from Hands-F...
int bt_device_unset_att_mtu_changed_cb(void) TIZEN_DEPRECATED_API
Unregisters the callback function to be invoked when the ATT MTU is changed. 3.0.
void * bt_proximity_monitor_h
The handle of a Proximity Monitor client handle which is associated with a remote device...
int bt_dpm_add_uuids_to_blacklist(const char *service_uuid)
Adds the uuids to blacklist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_proximity_reporter_set_property_changed_cb(bt_proximity_reporter_h reporter, bt_proximity_reporter_property_changed_cb callback, void *user_data)
Sets proximity reporter properties change callback. 4.0 public http://tizen.org/privilege/bluetoot...
int bt_dpm_get_discoverable_state(bt_dpm_status_e *value)
Reads the Restriction for discoverable mode. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_hf_set_sco_state_changed_cb(bt_hf_sco_state_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the SCO(Synchronous Connection Oriented link)...
int bt_dpm_set_discoverable_state(bt_dpm_status_e value)
Sets the Restriction for discoverable mode. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_otp_set_server_state_changed_cb(bt_otp_server_state_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the server state is changed.
void(* bt_proximity_reporter_property_changed_cb)(int result, const char *remote_address, int service_type, int prop_value, void *user_data)
Called when the Proximity profile reporter property is changed. 4.0.
int bt_dpm_get_pairing_state(bt_dpm_status_e *value)
Reads the Restriction for pairing. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_hid_device_disconnect(const char *remote_address)
Disconnects the connection with HID Host device, asynchronously. 2.3.1 platform http://tizen...
int bt_hf_set_call_handling_event_cb(bt_hf_call_handling_event_cb callback, void *user_data)
Registers a callback function that will be invoked when a call handling event happened from Hands-Fre...
int bt_proximity_monitor_connect(bt_proximity_monitor_h monitor)
Proximity Monitor initiates the connection to remote reporter device. 4.0 public http://tizen...
void(* bt_nap_connection_state_changed_cb)(bool connected, const char *remote_address, const char *interface_name, void *user_data)
Called when the connection state is changed. 2.3.
int bt_hid_device_send_mouse_event(const char *remote_address, const bt_hid_mouse_data_s *mouse_data)
Sends the mouse event data. 2.3.1 platform http://tizen.org/privilege/bluetooth.admin.
void(* bt_hrp_collector_bsl_read_completed_cb)(int result, bt_hrp_collector_h request_handle, bt_body_sensor_location_e location, void *user_data)
Called when the client request read operation on body sensor location has been completed. 4.
int bt_avrcp_control_set_absolute_volume(unsigned int value)
Sends the volume change request to the remote device. 4.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_proximity_reporter_destroy(bt_proximity_reporter_h reporter)
Destroys the Proximity Profile Reporter Role. 4.0 public http://tizen.org/privilege/bluetooth.
int bt_hf_notify_speaker_gain(int gain)
Notifies the speaker gain to the remote device. platform http://tizen.org/privilege/bluetooth.admin.
int bt_hid_device_activate(bt_hid_device_connection_state_changed_cb callback, void *user_data)
Registers the method for HID Device role 2.3.1 platform http://tizen.org/privilege/bluetooth.admin.
bt_opp_transfer_type_t
Enumerations for the transfer type 3.0.
int bt_dpm_clear_uuids_from_blacklist(void)
Clears the uuids from blacklist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_pbap_client_is_connected(const char *address, bool *connected_status)
Gets the pbap connected status. 3.0.
bt_device_connection_link_type_e
Enumerations of connection link type. 2.3.
The structure type containing the HID mouse event information. .
int bt_proximity_monitor_set_linkloss_alert(bt_proximity_monitor_h monitor, int value)
Set the Proximity Profile monitor linkloss alert value. 4.0 public http://tizen.org/privilege/bluetooth.
int bt_hf_set_multi_call_handling_event_cb(bt_hf_multi_call_handling_event_cb callback, void *user_data)
Registers a callback function that will be invoked when a multi call handling event happened from Han...
int bt_hf_notify_voice_recognition_state(bool state)
Notifies the state of voice recognition. platform http://tizen.org/privilege/bluetooth.admin.
void(* bt_ag_dtmf_transmitted_cb)(const char *dtmf, void *user_data)
Called when a DTMF (Dual Tone Multi Frequency) is transmitted from Hands-Free. 2.3.
int bt_dpm_set_desktop_connectivity_state(bt_dpm_status_e value)
Sets the Restriction for desktop connectivity. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
void(* bt_hf_speaker_gain_changed_cb)(int gain, void *user_data)
Called when the speaker gain of the remote device is changed. .
int bt_dpm_set_limited_discoverable_state(bt_dpm_status_e value)
Sets the Restriction for limited discoverable mode. 3.0 platform http://tizen.org/privilege/blueto...
int bt_hf_close_sco(void)
Closes an opened SCO(Synchronous Connection Oriented link), synchronously. platform http://tizen...
int bt_device_get_att_mtu(const char *remote_address, unsigned int *mtu) TIZEN_DEPRECATED_API
Gets the ATT MTU value set for a connection 3.0 platform http://tizen.org/privilege/bluetooth.admin.
bt_restricted_profile_t
Restricted Profile enumeration. 3.0.
bt_ag_call_state_e
Enumerations for the call state 2.3.
int bt_adapter_passkey_reply(char *passkey, bool authentication_reply)
API to reply with PIN or PASSKEY with authentication type - TRUE or FALSE.
void(* bt_ag_vendor_cmd_cb)(char *command, void *user_data)
Called when a XSAT vendor command is transmitted from Hands-Free. 2.3.
int bt_hid_device_connect(const char *remote_address)
Initiates HID device Connection with device role, asynchronously. 2.3.1 platform http://tizen...
int bt_dpm_set_allow_outgoing_call(bt_dpm_status_e value)
Sets the Restriction for outgoing call. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_dpm_get_uuids_from_whitelist(bt_dpm_uuids_list_s **uuid_list)
Reads the uuids from whitelist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
void * bt_scan_filter_h
The handle of a Bluetooth LE scan filter. 4.0.
void * bt_otp_client_h
The handle of a OTP client which is associated with a remote OTP Server 4.0.
void(* bt_panu_connection_state_changed_cb)(int result, bool connected, const char *remote_address, bt_panu_service_type_e type, void *user_data)
Called when the connection state is changed.
int bt_proximity_monitor_destroy(bt_proximity_monitor_h monitor)
Creates the Proximity Profile Monitor Role. 4.0 public http://tizen.org/privilege/bluetooth.
int bt_dpm_clear_devices_from_whitelist(void)
Clears the device from whitelist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_dpm_get_uuids_from_blacklist(bt_dpm_uuids_list_s **uuid_list)
Reads the uuids from blacklist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
bt_hid_param_type_e
Enumerations of the Bluetooth HID parameter type. .
bt_dpm_status_e
DPM Policy status 3.0.
void(* bt_proximity_reporter_connection_state_changed_cb)(int result, const char *remote_address, bt_proximity_reporter_h reporter, bool connected, int supported_service, void *user_data)
Called when the Proximity reporter profile connection state is changed. 4.0.
bt_trusted_profile_t
Trusted Profile enumeration. 3.0.
int bt_ag_set_vendor_cmd_cb(bt_ag_vendor_cmd_cb callback, void *user_data)
Registers a callback function that will be invoked when a XSATvendor AT command is transmitted from H...
int bt_otp_unset_server_state_changed_cb(void)
Registers a callback function that will be invoked when the server state is changed.
int bt_proximity_reporter_set_connection_state_changed_cb(bt_proximity_reporter_h reporter, bt_proximity_reporter_connection_state_changed_cb callback, void *user_data)
Sets proximity reporter connection state changed event change callback. 4.0 public http://tizen...
int bt_adapter_unset_authentication_req_cb(void)
Unregisters a callback function that will be invoked when remote device requests authentication.
void(* bt_ag_multi_call_handling_event_cb)(bt_ag_multi_call_handling_event_e event, void *user_data)
Called when a multi call handling event happened from Hands-Free. 2.3.
int bt_hf_unset_multi_call_handling_event_cb(void)
Unregisters a callback function that will be invoked when a multi call handling event happened from H...
void(* bt_opp_server_push_requested_cb)(const char *file, int size, void *user_data)
Called when the push is requested. 2.3.
bt_adapter_visibility_mode_e
Enumerations of the Bluetooth visibility mode. 2.3.
int bt_dpm_is_uuid_restriction_active(bt_dpm_status_e *value)
Reads the Restriction for uuid. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
int bt_dpm_add_devices_to_blacklist(const char *device_address)
Adds the device to blacklist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.
bt_adapter_le_advertising_filter_policy_e
Enumerations of the Bluetooth advertising filter policy. 2.3.
int bt_dpm_remove_uuid_from_blacklist(const char *service_uuid)
Removes the uuids from blacklist. 3.0 platform http://tizen.org/privilege/bluetooth.admin.