18 #ifndef __TIZEN_NETWORK_BLUETOOTH_H__ 19 #define __TIZEN_NETWORK_BLUETOOTH_H__ 24 #include "tizen_error.h" 28 #ifndef TIZEN_DEPRECATED_API 29 #define TIZEN_DEPRECATED_API __attribute__((__visibility__("default"), deprecated)) 642 int *hash_len,
int *randomizer_len);
670 unsigned char *hash,
unsigned char *randomizer,
671 int hash_len,
int randomizer_len);
704 int *hash192_len,
int *randomizer192_len,
705 unsigned char **hash256,
unsigned char **randomizer256,
706 int *hash256_len,
int *randomizer256_len);
738 const unsigned char *hash192,
const unsigned char *randomizer192,
739 int hash192_len,
int randomizer192_len,
740 const unsigned char *hash256,
const unsigned char *randomizer256,
741 int hash256_len,
int randomizer256_len);
1316 const char *service_data,
int service_data_len);
1802 bool *connected_status);
2353 void *user_data,
int *transfer_id);
2829 const char *data,
unsigned int data_len);
3154 int bt_avrcp_target_notify_track(
const char *title,
const char *artist,
const char *album,
const char *genre,
unsigned int track_num,
unsigned int total_tracks,
unsigned int duration);
3846 int bt_hdp_disconnect(
const char *remote_address,
unsigned int channel) TIZEN_DEPRECATED_API;
3873 int bt_hdp_send_data(
unsigned int channel,
const char *data,
unsigned int size) TIZEN_DEPRECATED_API;
3984 int offset,
int *value);
4005 int offset,
float *value);
4047 int value,
int offset);
4070 int mantissa,
int exponent,
int offset);
4377 char **remote_address);
4904 int properties, const
char *value,
int value_length,
4947 const
char *value,
int value_length,
5182 int offset,
int resp_status,
char *value,
int value_length);
5202 const
char *device_address,
void *user_data);
5465 unsigned short offset,
5466 unsigned short max_list_count,
5467 unsigned int fields,
5507 unsigned short offset,
5508 unsigned short max_list_count,
5555 unsigned int fields,
5597 const
char *search_value,
5599 unsigned short offset,
5600 unsigned short max_list_count,
5739 const
char *uuid, const
char *mask);
5787 const
char *uuid, const
char *mask);
5810 const
char *uuid, const
char *data,
unsigned int data_len);
5843 unsigned int data_len,
5845 unsigned int mask_len);
5868 int manufacturer_id,
5870 unsigned int data_len);
5901 int manufacturer_id,
5903 unsigned int data_len,
5905 unsigned int mask_len);
int bt_gatt_server_register_service(bt_gatt_server_h server, bt_gatt_h service)
Registers a specified service to the specified GATT server that the local device is hosting...
bt_gatt_write_type_e
Enumerations of the write type. 2.3.1.
int bt_adapter_le_start_scan(bt_adapter_le_scan_result_cb cb, void *user_data)
Starts the LE scan to find LE advertisement.
int bt_adapter_is_discovering(bool *is_discovering)
Checks for the device discovery is in progress or not. 2.3.
int bt_avrcp_control_get_track_info(bt_avrcp_metadata_attributes_info_s **track)
Gets the metadata of the track played by the remote device. 3.0.
int bt_avrcp_control_initialize(bt_avrcp_control_connection_state_changed_cb callback, void *user_data)
Initializes the Bluetooth AVRCP (Audio/Video Remote Control Profile) controller service. 3.0.
int bt_gatt_server_deinitialize(void)
DeInitializes the GATT server. 3.0.
void(* bt_gatt_client_att_mtu_changed_cb)(bt_gatt_client_h client, const bt_gatt_client_att_mtu_info_s *mtu_info, void *user_data)
Called when the ATT MTU value is changed. 4.0.
int bt_opp_server_cancel_transfer(int transfer_id)
Cancels the transfer. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_gatt_client_unset_characteristic_value_changed_cb(bt_gatt_h characteristic)
Unregisters a callback function to be invoked when the characteristic value is changed on the remote ...
int bt_adapter_le_stop_advertising(bt_advertiser_h advertiser)
Stops the advertising. 2.3 public http://tizen.org/privilege/bluetooth.
void(* bt_gatt_server_characteristic_notification_state_changed_cb)(bool notify, bt_gatt_server_h server, bt_gatt_h gatt_handle, void *user_data)
Called when the remote device enables or disables the Notification/Indication for particular characte...
void(* bt_pbap_phone_book_received_cb)(int result, const char *remote_address, const char *vcf_file, void *user_data)
Called when PBAP Phonebook Pull completes.
int bt_gatt_client_get_service(bt_gatt_client_h client, const char *uuid, bt_gatt_h *service)
Gets a service's GATT handle which has specific UUID. 2.3.1.
bt_data_type_int_e
Enumerations of the integer type for GATT handle's value. 2.3.1.
int bt_hid_device_deactivate(void)
Deactivates the Bluetooth HID Device role. public http://tizen.org/privilege/bluetooth.
int bt_adapter_le_scan_filter_unregister_all(void)
Unregisters all registered scan filters. 4.0 public http://tizen.org/privilege/bluetooth.
int bt_opp_client_add_file(const char *file)
Adds file to be pushed. 2.3.
int bt_hdp_connect_to_source(const char *remote_address, const char *app_id) TIZEN_DEPRECATED_API
Connects the remote device which acts as Source role, asynchronously. 2.3 public http://tizen...
int bt_deinitialize(void)
Releases all resources of the Bluetooth API. 2.3.
int bt_pbap_client_set_connection_state_changed_cb(bt_pbap_connection_state_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the connection state is changed. 3.0.
int bt_avrcp_unset_shuffle_mode_changed_cb(void)
Unregisters a callback function that will be invoked when the shuffle mode is changed. (e.g., by a TV remote control or other input devices). 2.4.
int bt_avrcp_control_get_shuffle_mode(bt_avrcp_shuffle_mode_e *mode)
Gets the shuffle mode of the remote device. 3.0.
int bt_hid_host_connect(const char *remote_address)
Connects the remote device with the HID (Human Interface Device) service, asynchronously. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_adapter_le_scan_filter_set_device_address(bt_scan_filter_h scan_filter, const char *address)
Sets the device address for the advertisements filter. 4.0.
void * bt_advertiser_h
The handle to control Bluetooth LE advertising. 2.3.
int bt_socket_listen_and_accept_rfcomm(int socket_fd, int max_pending_connections)
Starts listening on passed RFCOMM socket and accepts connection requests.
int bt_avrcp_set_play_status_changed_cb(bt_avrcp_play_status_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the Play status is changed. (e.g., by a TV remote control or other input devices). 3.0.
bt_profile_e
Enumerations of Bluetooth profile. 2.3.
bt_avrcp_repeat_mode_e
Enumerations for the repeat mode. 2.4.
void(* bt_avrcp_play_status_changed_cb)(bt_avrcp_player_state_e play_state, void *user_data)
Called when the Song Play status mode is changed by the remote target device. 3.0.
int bt_gatt_characteristic_set_write_type(bt_gatt_h characteristic, bt_gatt_write_type_e write_type)
Updates the write type of the specified characteristic. 2.3.1.
void(* bt_opp_server_transfer_progress_cb)(const char *file, long long size, int percent, void *user_data)
Called when a file is being transferred. 2.3.
int bt_gatt_server_get_service(bt_gatt_server_h server, const char *uuid, bt_gatt_h *service)
Gets a service's GATT handle which has specific UUID. 3.0.
int bt_adapter_le_is_discovering(bool *is_discovering) TIZEN_DEPRECATED_API
Checks for the LE device discovery is in progress or not. 2.3.
int bt_opp_server_initialize_by_connection_request(const char *destination, bt_opp_server_connection_requested_cb connection_requested_cb, void *user_data)
Initializes the Bluetooth OPP server requested by bt_opp_server_connection_requested_cb().
void(* bt_avrcp_target_connection_state_changed_cb)(bool connected, const char *remote_address, void *user_data)
Called when the connection state is changed. 2.3.
int bt_device_unset_bond_destroyed_cb(void)
Unregisters the callback function. 2.3.
bt_adapter_le_scan_filter_type_e
Enumeration for the scan filter type. 4.0.
int bt_gatt_server_unregister_all_services(bt_gatt_server_h server)
Unregisters all services from the specified GATT server that the local device is hosting. 3.0 public http://tizen.org/privilege/bluetooth.
int bt_gatt_characteristic_destroy(bt_gatt_h gatt_handle)
Destroys the GATT handle of characteristic. 3.0.
int bt_gatt_service_get_characteristic(bt_gatt_h service, const char *uuid, bt_gatt_h *characteristic)
Gets a characteristic's GATT handle which has specific UUID. 2.3.1.
int bt_gatt_characteristic_get_service(bt_gatt_h characteristic, bt_gatt_h *service)
Gets the service's GATT handle which the specified characteristic belongs to. 2.3.1.
int bt_avrcp_target_notify_equalizer_state(bt_avrcp_equalizer_state_e state)
Notifies the equalizer state to the remote device. 2.4 public http://tizen.org/privilege/bluetooth...
int bt_device_set_authorization(const char *remote_address, bt_device_authorization_e authorization_state)
Sets the authorization of a bonded device, asynchronously. 2.3 public http://tizen.org/privilege/bluetooth.
bt_avrcp_scan_mode_e
Enumerations for the scan mode. 2.4.
int bt_gatt_service_create(const char *uuid, bt_gatt_service_type_e type, bt_gatt_h *service)
Creates the GATT service. 3.0.
int bt_device_set_alias(const char *remote_address, const char *alias)
Sets an alias for the bonded device. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_socket_disconnect_rfcomm(int socket_fd)
Disconnects the RFCOMM connection with the given file descriptor of connected socket. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_adapter_set_remote_oob_data(const char *remote_address, unsigned char *hash, unsigned char *randomizer, int hash_len, int randomizer_len)
Sets the Hash and Randomizer value, synchronously. 2.3 public http://tizen.org/privilege/bluetooth...
int bt_hid_device_activate(bt_hid_device_connection_state_changed_cb callback, void *user_data)
Activates the Bluetooth HID Device role. public http://tizen.org/privilege/bluetooth.
bool(* bt_gatt_foreach_cb)(int total, int index, bt_gatt_h gatt_handle, void *user_data)
Called when you get GATT handles repeatedly. 2.3.1.
void(* bt_ipsp_init_state_changed_cb)(int result, bool ipsp_initialized, void *user_data)
Called when the IPSP initialization state changes. 4.0.
int bt_hdp_unregister_sink_app(const char *app_id) TIZEN_DEPRECATED_API
Unregisters the given application that acts as the Sink role of HDP (Health Device Profile)...
int bt_opp_client_push_files(const char *remote_address, bt_opp_client_push_responded_cb responded_cb, bt_opp_client_push_progress_cb progress_cb, bt_opp_client_push_finished_cb finished_cb, void *user_data)
Pushes the file to the remote device, asynchronously.
bt_data_type_float_e
Enumerations of the float type for GATT handle's value. 2.3.1.
int bt_gatt_client_read_value(bt_gatt_h gatt_handle, bt_gatt_client_request_completed_cb callback, void *user_data)
Reads the value of a characteristic or descriptor from the remote device asynchronously. 2.3.1 public http://tizen.org/privilege/bluetooth.
int bt_pbap_client_search_phone_book(const char *address, bt_pbap_address_book_source_e source, bt_pbap_folder_type_e folder_type, bt_pbap_search_field_e search_attribute, const char *search_value, bt_pbap_sort_order_e order, unsigned short offset, unsigned short max_list_count, bt_pbap_list_vcards_cb callback, void *user_data)
Finds and fetches the contact and call log information from the PBAP server, asynchronously. 3.0 public http://tizen.org/privilege/bluetooth.
int bt_pbap_client_connect(const char *address)
Connects to PBAP server, asynchronously. 3.0 public http://tizen.org/privilege/bluetooth.
void(* bt_gatt_client_service_changed_cb)(bt_gatt_client_h client, bt_gatt_client_service_change_type_e change_type, const char *service_uuid, void *user_data)
Called when a service of a remote GATT server has been changed. 3.0.
int bt_adapter_le_get_scan_result_tx_power_level(const bt_adapter_le_device_scan_result_info_s *info, bt_adapter_le_packet_type_e pkt_type, int *power_level)
Gets the transmission power level from the scan result information. 2.3.1.
int bt_adapter_le_set_advertising_tx_power_level(bt_advertiser_h advertiser, bt_adapter_le_packet_type_e pkt_type, bool include_tx_power)
Sets whether the transmission power level should be included in advertise or scan response data...
bt_avrcp_player_command_e
Enumeration for the player control commands. 3.0.
int bt_gatt_server_unregister_service(bt_gatt_server_h server, bt_gatt_h service)
Unregisters a specified service from the specified GATT server that the local device is hosting...
int bt_opp_client_clear_files(void)
Adds file to be pushed. 2.3.
int bt_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 connection state is changed. 2.3.
int bt_gatt_descriptor_get_permissions(bt_gatt_h gatt_handle, int *permissions)
Gets the permissions which a descriptor's GATT handle has. 3.0.
int bt_gatt_service_destroy(bt_gatt_h gatt_handle)
Destroys the GATT handle of service. 3.0.
int bt_hdp_set_data_received_cb(bt_hdp_data_received_cb callback, void *user_data) TIZEN_DEPRECATED_API
Registers a callback function that will be invoked when you receive the data. 2.3.
void(* bt_socket_data_received_cb)(bt_socket_received_data_s *data, void *user_data)
Called when you receive data. 2.3.
bool(* bt_device_connected_profile)(bt_profile_e profile, void *user_data)
Called when you get connected profiles repeatedly. 2.3.
int bt_device_is_profile_connected(const char *remote_address, bt_profile_e bt_profile, bool *connected_status)
Gets the profile connected status. 2.3.
int bt_adapter_unset_device_discovery_state_changed_cb(void)
Unregisters the callback function. 2.3.
int bt_device_set_bond_destroyed_cb(bt_device_bond_destroyed_cb callback, void *user_data)
Registers a callback function to be invoked when the bond destroys. 2.3.
int bt_device_unset_connection_state_changed_cb(void)
Unregisters the callback function to be invoked when the connection state is changed. 2.3.
int bt_gatt_client_foreach_services(bt_gatt_client_h client, bt_gatt_foreach_cb callback, void *user_data)
Invokes callback function on each service that belongs to the specified GATT client. 2.3.1.
int bt_adapter_is_service_used(const char *service_uuid, bool *used)
Checks whether the UUID of service is used or not. 2.3.
bt_avrcp_player_state_e
Enumerations for the player state. 3.0.
int bt_hid_device_unset_data_received_cb(void)
Unsets the data received callback. .
bt_pbap_search_field_e
Enumeration of phone book search fields. 3.0.
int bt_opp_client_deinitialize(void)
Deinitializes the Bluetooth OPP client. 2.3.
int bt_adapter_start_device_discovery(void)
Starts the device discovery, asynchronously.
void(* bt_opp_server_transfer_finished_cb)(int result, const char *file, long long size, void *user_data)
Called when a transfer is finished. 2.3.
void(* bt_hdp_data_received_cb)(unsigned int channel, const char *data, unsigned int size, void *user_data)
Called when the you receive the data. 2.3.
int bt_adapter_stop_device_discovery(void)
Stops the device discovery, asynchronously. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_socket_set_connection_state_changed_cb(bt_socket_connection_state_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the connection state changes. 2.3.
int bt_device_set_authorization_changed_cb(bt_device_authorization_changed_cb callback, void *user_data)
Registers a callback function to be invoked when the authorization of device changes. 2.3.
int bt_adapter_le_add_advertising_service_solicitation_uuid(bt_advertiser_h advertiser, bt_adapter_le_packet_type_e pkt_type, const char *uuid)
Adds a service solicitation UUID to advertise or scan response data. The maximum advertised or respon...
int bt_adapter_le_add_advertising_service_uuid(bt_advertiser_h advertiser, bt_adapter_le_packet_type_e pkt_type, const char *uuid)
Adds a service UUID to advertise or scan response data. The maximum advertised or responded data size...
int bt_gatt_characteristic_get_permissions(bt_gatt_h gatt_handle, int *permissions)
Gets the permissions which a characteristic's GATT handle has. 3.0.
void(* bt_gatt_client_characteristic_value_changed_cb)(bt_gatt_h characteristic, char *value, int len, void *user_data)
Called when a value of a watched characteristic's GATT handle has been changed. 2.3.1.
int bt_avrcp_control_deinitialize(void)
Deinitializes the Bluetooth AVRCP (Audio/Video Remote Control Profile) controller service...
void(* bt_hdp_connected_cb)(int result, const char *remote_address, const char *app_id, bt_hdp_channel_type_e type, unsigned int channel, void *user_data)
Called when the connection is established. 2.3.
int bt_gatt_service_foreach_included_services(bt_gatt_h service, bt_gatt_foreach_cb callback, void *user_data)
Invokes callback function on each included service that belongs to the specified service. 2.3.1.
int bt_gatt_server_send_response(int request_id, bt_gatt_att_request_type_e request_type, int offset, int resp_status, char *value, int value_length)
Sends a response to the remote device as a result of a read/write request. 3.0 public http://tizen...
int bt_hdp_unset_data_received_cb(void) TIZEN_DEPRECATED_API
Unregisters a callback function that will be invoked when you receive the data. 2.3.
int bt_hid_device_send_key_event(const char *remote_address, const bt_hid_key_data_s *key_data)
Sends the keyboard event data to the remote device. public http://tizen.org/privilege/bluetooth.
int bt_adapter_le_create_advertiser(bt_advertiser_h *advertiser)
Creates advertiser to advertise device's existence or respond to LE scanning request. 2.3.
bt_avrcp_shuffle_mode_e
Enumerations for the shuffle mode. 2.4.
int bt_ipsp_unset_connection_state_changed_cb(void)
Unregisters the callback function called when the connection state changes. 4.0. ...
int bt_device_unset_service_searched_cb(void)
Unregisters the callback function. 2.3.
bool(* bt_adapter_bonded_device_cb)(bt_device_info_s *device_info, void *user_data)
Called when you get bonded devices repeatedly. 2.3.
int bt_adapter_le_get_scan_result_manufacturer_data(const bt_adapter_le_device_scan_result_info_s *info, bt_adapter_le_packet_type_e pkt_type, int *manufacturer_id, char **manufacturer_data, int *manufacturer_data_len)
Gets the manufacturer data from the scan result information. 2.3.1.
int bt_gatt_client_get_remote_address(bt_gatt_client_h client, char **remote_address)
Gets the address of remote device. 2.3.1.
void(* bt_avrcp_equalizer_state_changed_cb)(bt_avrcp_equalizer_state_e equalizer, void *user_data)
Called when the equalizer state is changed by the remote control device. 2.3.
int bt_gatt_server_set_characteristic_notification_state_change_cb(bt_gatt_h gatt_handle, bt_gatt_server_characteristic_notification_state_changed_cb callback, void *user_data)
Registers a callback function to be invoked when the remote device enables or disables the Notificati...
int bt_socket_set_data_received_cb(bt_socket_data_received_cb callback, void *user_data)
Registers a callback function that will be invoked when you receive data. 2.3.
int bt_avrcp_control_get_repeat_mode(bt_avrcp_repeat_mode_e *mode)
Gets the repeat state of the remote device. 3.0.
int bt_gatt_server_set_read_value_requested_cb(bt_gatt_h gatt_handle, bt_gatt_server_read_value_requested_cb callback, void *user_data)
Registers a callback function to be invoked when a read request for a specified characteristic or des...
The structure type containing the HID keyboard event information.
int bt_adapter_le_set_scan_mode(bt_adapter_le_scan_mode_e scan_mode)
Sets Bluetooth LE scan mode. 3.0 public http://tizen.org/privilege/bluetooth.
int bt_get_uuid_name(const char *uuid, char **name)
Gets the specification name for the given UUID. 3.0.
bt_gatt_service_type_e
Enumerations of the service type. 2.3.1.
int bt_pbap_client_get_list(const char *address, bt_pbap_address_book_source_e source, bt_pbap_folder_type_e folder_type, bt_pbap_sort_order_e order, unsigned short offset, unsigned short max_list_count, bt_pbap_list_vcards_cb callback, void *user_data)
Gets contact and call log information from the PBAP server, asynchronously. 3.0 public http://tize...
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_adapter_get_name(char **local_name)
Gets the name of local Bluetooth adapter.
int bt_avrcp_set_shuffle_mode_changed_cb(bt_avrcp_shuffle_mode_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the shuffle mode is changed. (e.g., by a TV remote control or other input devices). 2.4.
int bt_hid_device_connect(const char *remote_address)
Initiates the HID device connection with the Device role, asynchronously. public http://tizen...
int bt_opp_server_deinitialize(void)
Deinitializes the Bluetooth OPP server. 2.3.
int bt_device_create_bond(const char *remote_address)
Creates a bond with a remote Bluetooth device, asynchronously. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_gatt_set_int_value(bt_gatt_h gatt_handle, bt_data_type_int_e type, int value, int offset)
Updates the value of a characteristic or descriptor's GATT handle using a integer type's value...
Structure of le scan result information. 2.3.1.
int bt_adapter_le_stop_scan(void)
Stops the LE scan. 2.3.1 public http://tizen.org/privilege/bluetooth.
void(* bt_adapter_state_changed_cb)(int result, bt_adapter_state_e adapter_state, void *user_data)
Called when the Bluetooth adapter state changes. 2.3.
void(* bt_avrcp_shuffle_mode_changed_cb)(bt_avrcp_shuffle_mode_e shuffle, void *user_data)
Called when the shuffle mode is changed by the remote control device. 2.3.
void(* bt_socket_connection_state_changed_cb)(int result, bt_socket_connection_state_e connection_state, bt_socket_connection_s *connection, void *user_data)
Called when the socket connection state changes. 2.3.
int bt_adapter_le_set_advertising_device_name(bt_advertiser_h advertiser, bt_adapter_le_packet_type_e pkt_type, bool include_name)
Sets whether the device name should be included in advertise or scan response data. The maximum advertised or responded data size is 31 bytes including data type and system wide data. 2.3.1.
int bt_gatt_characteristic_create(const char *uuid, int permissions, int properties, const char *value, int value_length, bt_gatt_h *characteristic)
Creates the GATT characteristic. 3.0.
void * bt_gatt_h
The handle of a service, characteristic or descriptor. 2.3.1.
int bt_adapter_le_is_coded_phy_supported(bool *is_supported)
Checks if LE CODED PHY feature is supported or not. 5.0.
bt_pbap_sort_order_e
Enumeration of sorting orders. 3.0.
int bt_adapter_le_get_scan_result_ibeacon_report(const bt_adapter_le_device_scan_result_info_s *info, bt_adapter_le_packet_type_e pkt_type, bt_adapter_le_ibeacon_scan_result_info_s **ibeacon_info)
Gets iBeacon format's data from the scan result information. 4.0.
int bt_adapter_le_scan_filter_set_type(bt_scan_filter_h scan_filter, bt_adapter_le_scan_filter_type_e mode)
Sets the scan filter type for the advertisements filter.
void(* bt_gatt_client_request_completed_cb)(int result, bt_gatt_h request_handle, void *user_data)
Called when the client request(e.g. read / write) has been completed. 2.3.1.
int bt_adapter_set_state_changed_cb(bt_adapter_state_changed_cb callback, void *user_data)
Registers a callback function to be invoked when the Bluetooth adapter state changes. 2.3.
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_adapter_le_scan_filter_set_device_name(bt_scan_filter_h scan_filter, const char *name)
Sets the device name for the advertisements filter.
int bt_hid_device_send_mouse_event(const char *remote_address, const bt_hid_mouse_data_s *mouse_data)
Sends the mouse event data to the remote device. public http://tizen.org/privilege/bluetooth.
int bt_avrcp_unset_track_info_changed_cb(void)
Unregisters a callback function that will be invoked when the track metadata is changed. (e.g., by a TV remote control or other input devices). 3.0.
int bt_adapter_le_free_ibeacon_report(bt_adapter_le_ibeacon_scan_result_info_s *ibeacon_info)
Frees iBeacon information. 4.0.
int bt_pbap_client_get_phone_book_size(const char *address, bt_pbap_address_book_source_e source, bt_pbap_folder_type_e folder_type, bt_pbap_phone_book_size_cb callback, void *user_data)
Gets size of phone book from PBAP server, asynchronously. 3.0 public http://tizen.org/privilege/bluetooth.
int bt_ipsp_connect(const char *remote_address)
Connects to a remote device's IPSP service over LE, asynchronously. 4.0 public http://tizen...
int bt_avrcp_unset_play_status_changed_cb(void)
Unregisters a callback function that will be invoked when the Play status is changed. (e.g., by a TV remote control or other input devices). 3.0.
int bt_adapter_get_local_oob_data(unsigned char **hash, unsigned char **randomizer, int *hash_len, int *randomizer_len)
Gets the Hash and Randomizer value, synchronously. 2.3 public http://tizen.org/privilege/bluetooth...
int bt_avrcp_target_notify_shuffle_mode(bt_avrcp_shuffle_mode_e mode)
Notifies the shuffle mode to the remote device. 2.4 public http://tizen.org/privilege/bluetooth.
int bt_device_get_service_mask_from_uuid_list(char **uuids, int no_of_service, bt_service_class_t *service_mask_list)
Gets the service mask from the UUID list. 2.3.
bt_device_authorization_e
Enumerations of device authorization state. 2.3.
void(* bt_avrcp_repeat_mode_changed_cb)(bt_avrcp_repeat_mode_e repeat, void *user_data)
Called when the repeat mode is changed by the remote control device. 2.3.
void(* bt_opp_client_push_progress_cb)(const char *file, long long size, int percent, void *user_data)
Called when each file is being transferred. 2.3.
int bt_gatt_disconnect(const char *address)
Disconnects to LE connection with the given remote Bluetooth device address, asynchronously. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_gatt_service_get_included_service(bt_gatt_h service, const char *uuid, bt_gatt_h *included_service)
Gets an included service's GATT handle which has specific UUID. 2.3.1.
int bt_adapter_le_get_scan_result_device_name(const bt_adapter_le_device_scan_result_info_s *info, bt_adapter_le_packet_type_e pkt_type, char **name)
Gets the device name from the scan result information. 2.3.1.
int bt_ipsp_initialize(bt_ipsp_init_state_changed_cb callback, void *user_data)
Initializes the Bluetooth IPSP (Internet Protocol Support Profile) service. 4.0. ...
void(* bt_opp_server_connection_requested_cb)(const char *remote_address, void *user_data)
Called when an OPP connection is requested.
int bt_pbap_client_disconnect(const char *address)
Disconnects from PBAP server, asynchronously. 3.0 public http://tizen.org/privilege/bluetooth.
int bt_pbap_client_get_phone_book(const char *address, bt_pbap_address_book_source_e source, bt_pbap_folder_type_e folder_type, bt_pbap_vcard_format_e format, bt_pbap_sort_order_e order, unsigned short offset, unsigned short max_list_count, unsigned int fields, bt_pbap_phone_book_received_cb callback, void *user_data)
Gets all contacts and call logs as vCard from PBAP server, asynchronously.
int bt_initialize(void)
Initializes the Bluetooth API. 2.3.
int bt_gatt_connect(const char *address, bool auto_connect)
Connects to a specific LE based service on a remote bluetooth device address, asynchronously. 2.3 public http://tizen.org/privilege/bluetooth.
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.
void(* bt_gatt_connection_state_changed_cb)(int result, bool connected, const char *remote_address, void *user_data)
Called when the connection state is changed.
int bt_hdp_send_data(unsigned int channel, const char *data, unsigned int size) TIZEN_DEPRECATED_API
Sends the data to the remote device. 2.3 public http://tizen.org/privilege/bluetooth.
void(* bt_adapter_le_scan_result_cb)(int result, bt_adapter_le_device_scan_result_info_s *info, void *user_data)
Called when the LE advertisement has been found. 2.3.1.
int bt_adapter_le_start_advertising_new(bt_advertiser_h advertiser, bt_adapter_le_advertising_state_changed_cb cb, void *user_data)
Starts advertising with passed advertiser and advertising parameters.
bt_adapter_le_scan_mode_e
Enumerations of the Bluetooth le scan mode. 3.0.
int bt_avrcp_control_send_player_command(bt_avrcp_player_command_e cmd)
Sends a command to the target device. 3.0 public http://tizen.org/privilege/bluetooth.
int bt_opp_client_initialize(void)
Initializes the Bluetooth OPP client. 2.3.
int bt_device_set_service_searched_cb(bt_device_service_searched_cb callback, void *user_data)
Registers a callback function to be invoked when the process of service search finishes. 2.3.
int bt_gatt_client_request_att_mtu_change(bt_gatt_client_h client, unsigned int mtu)
Requests a change of the ATT MTU value. 4.0 public http://tizen.org/privilege/bluetooth.
bt_adapter_le_packet_type_e
Enumerations of the Bluetooth LE packet type. 2.3.
bt_pbap_address_book_source_e
Enumeration of address book location for PBAP. 3.0.
int bt_gatt_server_notify_characteristic_changed_value(bt_gatt_h characteristic, bt_gatt_server_notification_sent_cb callback, const char *device_address, void *user_data)
Notifies value change of the characteristic to the remote devices which enable a Client Characteristi...
int bt_adapter_get_bonded_device_info(const char *remote_address, bt_device_info_s **device_info)
Gets the device information of a bonded device. 2.3.
void * bt_gatt_server_h
The handle of a GATT server. 3.0.
int bt_device_cancel_bonding(void)
Cancels the bonding process. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_audio_unset_connection_state_changed_cb(void)
Unregisters a callback function that will be invoked when the connection state is changed...
int bt_gatt_server_start(void)
Registers the application along with the GATT services of the application it is hosting. 3.0 public http://tizen.org/privilege/bluetooth.
LE service data structure. 2.3.1.
int bt_adapter_unset_state_changed_cb(void)
Unregisters the callback function. 2.3.
bt_hid_header_type_e
Enumerations of the Bluetooth HID header type. .
int bt_gatt_client_unset_att_mtu_changed_cb(bt_gatt_client_h client)
Unregisters the callback function to be invoked when the ATT MTU is changed. 4.0.
int bt_avrcp_control_get_position(unsigned int *position)
Gets the position of the song played by the remote device. 3.0.
int bt_device_update_le_connection_mode(const char *remote_address, bt_device_le_connection_mode_e mode)
Updates a LE connection mode. 3.0 public http://tizen.org/privilege/bluetooth. ...
int bt_adapter_le_scan_filter_set_service_solicitation_uuid_with_mask(bt_scan_filter_h scan_filter, const char *uuid, const char *mask)
Sets the service solicitation UUID and the mask for the advertisements filter, to use for filtering b...
int bt_pbap_client_unset_connection_state_changed_cb(void)
Unregisters a callback function that will be invoked when the connection state is changed...
int bt_adapter_le_destroy_advertiser(bt_advertiser_h advertiser)
Destroys advertiser. 2.3.
int bt_adapter_le_get_scan_result_service_solicitation_uuids(const bt_adapter_le_device_scan_result_info_s *info, bt_adapter_le_packet_type_e pkt_type, char ***uuids, int *count)
Gets the service solicitation UUID list from the scan result information. 2.3.1. ...
int bt_device_unset_authorization_changed_cb(void)
Unregisters the callback function. 2.3.
int bt_avrcp_target_notify_player_state(bt_avrcp_player_state_e state)
Notifies the player state to the remote device. 2.4 public http://tizen.org/privilege/bluetooth.
int bt_gatt_server_foreach_services(bt_gatt_server_h server, bt_gatt_foreach_cb callback, void *user_data)
Invokes callback function on each service that belongs to the specified GATT server. 3.0.
int bt_audio_deinitialize(void)
Deinitializes the Bluetooth profiles related with audio. 2.3.
int bt_adapter_set_remote_oob_ext_data(const char *remote_address, const unsigned char *hash192, const unsigned char *randomizer192, int hash192_len, int randomizer192_len, const unsigned char *hash256, const unsigned char *randomizer256, int hash256_len, int randomizer256_len)
Sets the Hash and Randomizer value, synchronously. 3.0 public http://tizen.org/privilege/bluetooth...
int bt_adapter_set_visibility_mode_changed_cb(bt_adapter_visibility_mode_changed_cb callback, void *user_data)
Registers a callback function to be invoked when the visibility mode changes. 2.3.
void(* bt_ipsp_connection_state_changed_cb)(int result, bool connected, const char *remote_address, const char *iface_name, void *user_data)
Called when the IPSP connection state changes. 4.0.
int bt_gatt_client_set_service_changed_cb(bt_gatt_client_h client, bt_gatt_client_service_changed_cb callback, void *user_data)
Registers a callback function to be invoked when service is changed from a remote device(GATT server)...
int bt_gatt_server_set_write_value_requested_cb(bt_gatt_h gatt_handle, bt_gatt_server_write_value_requested_cb callback, void *user_data)
Registers a callback function to be invoked when a value of a characteristic or descriptor has been c...
The structure for LE iBeacon scan result information. 4.0.
void(* bt_avrcp_position_changed_cb)(unsigned int position, void *user_data)
Called when the Song position mode is changed by the remote target device. 3.0.
Device information structure used for identifying pear device. 2.3.
bt_gatt_type_e
Enumerations of the GATT handle's type. 2.3.1.
int bt_gatt_get_uuid(bt_gatt_h gatt_handle, char **uuid)
Gets the UUID of a service, characteristic or descriptor's GATT handle. 2.3.1.
int bt_avrcp_control_set_shuffle_mode(bt_avrcp_shuffle_mode_e mode)
Sends the shuffle mode change request to the remote device. 3.0 public http://tizen.org/privilege/bluetooth.
int bt_avrcp_unset_position_changed_cb(void)
Unregisters a callback function that will be invoked when the song position is changed. (e.g., by a TV remote control or other input devices). 3.0.
int bt_audio_initialize(void)
Initializes the Bluetooth profiles related with audio. 2.3.
int bt_ipsp_set_connection_state_changed_cb(bt_ipsp_connection_state_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the connection state changes. 4.0.
void(* bt_avrcp_control_connection_state_changed_cb)(bool connected, const char *remote_address, void *user_data)
Called when the connection state is changed. 3.0.
int bt_device_start_service_search(const char *remote_address)
Starts the search for services supported by the specified device, asynchronously. 2...
bt_device_le_connection_mode_e
Enumerations of the Bluetooth device's LE connection mode. 3.0.
int bt_avrcp_control_disconnect(const char *remote_address)
Disconnects from the AVRCP (Audio/Video Remote Control Profile) target device. 3.0 public http://tizen.org/privilege/bluetooth.
int bt_opp_client_cancel_push(void)
Cancels the push request in progress, asynchronously. 2.3 public http://tizen.org/privilege/blueto...
int bt_gatt_server_destroy(bt_gatt_server_h server)
Destroys the GATT server's handle. 3.0.
int bt_hid_host_deinitialize(void)
Deinitializes the Bluetooth HID (Human Interface Device) Host. 2.3.
int bt_gatt_unset_connection_state_changed_cb(void)
Unregisters a callback function that will be invoked when the connection state is changed...
void(* bt_device_service_searched_cb)(int result, bt_device_sdp_info_s *sdp_info, void *user_data)
Called when the process of service search finishes. 2.3.
void(* bt_socket_connection_requested_cb)(int socket_fd, const char *remote_address, void *user_data)
Called when a RFCOMM connection is requested. 2.3.
int bt_device_set_bond_created_cb(bt_device_bond_created_cb callback, void *user_data)
Registers a callback function to be invoked when the bond creates. 2.3.
void(* bt_device_authorization_changed_cb)(bt_device_authorization_e authorization, char *remote_address, void *user_data)
Called when the authorization of device changes. 2.3.
int bt_device_set_connection_state_changed_cb(bt_device_connection_state_changed_cb callback, void *user_data)
Registers a callback function to be invoked when the connection state is changed. 2...
int bt_adapter_free_device_info(bt_device_info_s *device_info)
Frees device info. 2.3.
int bt_avrcp_set_position_changed_cb(bt_avrcp_position_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the song position is changed. (e.g., by a TV remote control or other input devices). 3.0.
API to control the Bluetooth adapter, devices and communications.
int bt_avrcp_set_equalizer_state_changed_cb(bt_avrcp_equalizer_state_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the equalizer state is changed. (e.g., by a TV remote control or other input devices). 2.4.
void(* bt_gatt_server_read_value_requested_cb)(const char *remote_address, int request_id, bt_gatt_server_h server, bt_gatt_h gatt_handle, int offset, void *user_data)
Called when the remote device requests to read a value on a GATT server.
int bt_opp_server_reject(void)
Rejects the push request from the remote device. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_gatt_service_foreach_characteristics(bt_gatt_h service, bt_gatt_foreach_cb callback, void *user_data)
Invokes callback function on each characteristic that belongs to the specified service. 2.3.1.
int bt_socket_unset_connection_requested_cb(void)
Unregisters the callback function. 2.3.
int bt_avrcp_target_notify_scan_mode(bt_avrcp_scan_mode_e mode)
Notifies the scan mode to the remote device. 2.4 public http://tizen.org/privilege/bluetooth.
int bt_socket_create_rfcomm(const char *service_uuid, int *socket_fd)
Registers a RFCOMM server socket with a specific UUID. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_hdp_disconnect(const char *remote_address, unsigned int channel) TIZEN_DEPRECATED_API
Disconnects the remote device, asynchronously. 2.3 public http://tizen.org/privilege/bluetooth.
void(* bt_pbap_connection_state_changed_cb)(int result, bool connected, const char *remote_address, void *user_data)
Called when PBAP is Connected or Disconnected.
int bt_gatt_client_destroy(bt_gatt_client_h client)
Destroys the GATT client's handle. 2.3.1.
int bt_adapter_le_free_service_data_list(bt_adapter_le_service_data_s *data_list, int count)
Frees service data list. 2.3.1.
int bt_ipsp_deinitialize(void)
Deinitializes the Bluetooth IPSP (Internet Protocol Support Profile) service. 4.0.
int bt_hid_device_set_data_received_cb(bt_hid_device_data_received_cb callback, void *user_data)
Sets the callback called when the device receives data from the HID Host. .
int bt_avrcp_unset_repeat_mode_changed_cb(void)
Unregisters a callback function that will be invoked when the repeat mode is changed. (e.g., by a TV remote control or other input devices). 2.4.
int bt_hdp_register_sink_app(unsigned short data_type, char **app_id) TIZEN_DEPRECATED_API
Registers an application that acts as the Sink role of HDP (Health Device Profile). 2.3 public http://tizen.org/privilege/bluetooth.
int bt_adapter_set_name_changed_cb(bt_adapter_name_changed_cb callback, void *user_data)
Registers a callback function to be invoked when the name of Bluetooth adapter changes. 2.3.
int bt_gatt_characteristic_get_properties(bt_gatt_h characteristic, int *properties)
Gets the properties which a characteristic's GATT handle has. 2.3.1.
int bt_pbap_client_deinitialize(void)
Deinitializes the Bluetooth PBAP Client.
int bt_adapter_get_local_oob_ext_data(unsigned char **hash192, unsigned char **randomizer192, int *hash192_len, int *randomizer192_len, unsigned char **hash256, unsigned char **randomizer256, int *hash256_len, int *randomizer256_len)
Gets the Hash and Randomizer value, synchronously. 3.0 public http://tizen.org/privilege/bluetooth...
int bt_pbap_client_pull_vcard(const char *address, bt_pbap_address_book_source_e source, bt_pbap_folder_type_e folder_type, int index, bt_pbap_vcard_format_e format, unsigned int fields, bt_pbap_phone_book_received_cb callback, void *user_data)
Gets the selected contact using the index parameter as vCard from PBAP server, asynchronously.
int bt_avrcp_control_get_equalizer_state(bt_avrcp_equalizer_state_e *state)
Gets the the equalizer state of the remote device. 3.0.
int bt_gatt_characteristic_get_descriptor(bt_gatt_h characteristic, const char *uuid, bt_gatt_h *descriptor)
Gets a descriptor's GATT handle which has specific UUID. 2.3.1.
int bt_pbap_client_initialize(void)
Initializes the Bluetooth PBAP Client.
int bt_adapter_set_device_discovery_state_changed_cb(bt_adapter_device_discovery_state_changed_cb callback, void *user_data)
Registers a callback function to be invoked when the device discovery state changes. 2.3.
int bt_adapter_set_name(const char *local_name)
Sets the name of local Bluetooth adapter. 2.3 public http://tizen.org/privilege/bluetooth.
bt_gatt_att_request_type_e
Enumerations of the remote device request types for attributes. 3.0.
int bt_avrcp_control_free_track_info(bt_avrcp_metadata_attributes_info_s *track)
Frees the track metadata. 3.0.
void * bt_gatt_client_h
The handle of a GATT client which is associated with a remote device. 2.3.1.
int bt_socket_set_connection_requested_cb(bt_socket_connection_requested_cb callback, void *user_data)
Registers a callback function that will be invoked when a RFCOMM connection is requested. 2.3.
int bt_avrcp_target_deinitialize(void)
Deinitializes the Bluetooth AVRCP (Audio/Video Remote Control Profile) target service. 2.4.
int bt_opp_server_set_destination(const char *destination)
Sets the destination path of file to be pushed. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_gatt_get_type(bt_gatt_h gatt_handle, bt_gatt_type_e *gatt_type)
Gets the type of GATT handle. 2.3.1.
int bt_gatt_service_get_server(bt_gatt_h service, bt_gatt_server_h *server)
Gets the GATT server handle to which the specified service belongs. 3.0.
int bt_gatt_characteristic_add_descriptor(bt_gatt_h characteristic, bt_gatt_h descriptor)
Adds a descriptor to a specified characteristic. 3.0.
int bt_device_foreach_connected_profiles(const char *remote_address, bt_device_connected_profile callback, void *user_data)
Gets the connected profiles. 2.3.
int bt_socket_unset_data_received_cb(void)
Unregisters the callback function. 2.3.
int bt_gatt_descriptor_get_characteristic(bt_gatt_h descriptor, bt_gatt_h *characteristic)
Gets the characteristic's GATT handle which the specified descriptor belongs to. 2...
int bt_adapter_unset_name_changed_cb(void)
Unregisters the callback function. 2.3.
int bt_adapter_le_add_advertising_service_data(bt_advertiser_h advertiser, bt_adapter_le_packet_type_e pkt_type, const char *uuid, const char *service_data, int service_data_len)
Adds service data to advertise or scan response data. The maximum advertised or responded data size i...
int bt_audio_disconnect(const char *remote_address, bt_audio_profile_type_e type)
Disconnects the remote device with the given audio profile, asynchronously.
void(* bt_pbap_list_vcards_cb)(int result, const char *remote_address, const bt_pbap_vcard_info_s *vcard_info, int count, void *user_data)
Called when PBAP List vCards completes.
int bt_adapter_get_state(bt_adapter_state_e *adapter_state)
Gets the current state of local Bluetooth adapter. 2.3.
bt_adapter_le_advertising_mode_e
Enumerations of the Bluetooth advertising mode. 2.3.1.
int bt_avrcp_set_scan_mode_changed_cb(bt_avrcp_scan_mode_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the scan mode is changed. (e...
int bt_gatt_descriptor_destroy(bt_gatt_h gatt_handle)
Destroys the GATT handle of descriptor. 3.0.
int bt_adapter_le_scan_filter_unregister(bt_scan_filter_h scan_filter)
Unregisters all registered scan filters. 4.0 public http://tizen.org/privilege/bluetooth.
int bt_adapter_le_clear_advertising_data(bt_advertiser_h advertiser, bt_adapter_le_packet_type_e pkt_type)
Clears all data to be advertised or responded to scan request from LE scanning device. 2.3.
int bt_adapter_le_scan_filter_register(bt_scan_filter_h scan_filter)
Registers a scan filter to use for scanning.
int bt_avrcp_control_connect(const char *remote_address)
Connects the AVRCP (Audio/Video Remote Control Profile) target device. 3.0 public http://tizen...
int bt_device_destroy_bond(const char *remote_address)
Destroys the bond, asynchronously. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_hdp_unset_connection_state_changed_cb(void) TIZEN_DEPRECATED_API
Unregisters a callback function that will be invoked when the connection state is changed...
int bt_adapter_le_add_advertising_manufacturer_data(bt_advertiser_h advertiser, bt_adapter_le_packet_type_e pkt_type, int manufacturer_id, const char *manufacturer_data, int manufacturer_data_len)
Adds manufacturer specific data to advertise or scan response data. Please refer to the Bluetooth Ass...
int bt_adapter_le_scan_filter_destroy(bt_scan_filter_h scan_filter)
Destroys a scan filter. 4.0.
bt_audio_profile_type_e
Enumerations for the types of profiles related with audio. 2.3.
int bt_gatt_service_get_client(bt_gatt_h service, bt_gatt_client_h *client)
Gets the GATT client handle which the specified service belongs to. 2.3.1.
int bt_adapter_le_scan_filter_set_service_data_with_mask(bt_scan_filter_h scan_filter, const char *uuid, const char *data, unsigned int data_len, const char *mask, unsigned int mask_len)
Sets the service data and the mask for the advertisements filter, to use for filtering by partial dat...
int bt_adapter_le_get_scan_result_service_uuids(const bt_adapter_le_device_scan_result_info_s *info, bt_adapter_le_packet_type_e pkt_type, char ***uuids, int *count)
Gets the service UUID list from the scan result information. 2.3.1.
void(* bt_adapter_device_discovery_state_changed_cb)(int result, bt_adapter_device_discovery_state_e discovery_state, bt_adapter_device_discovery_info_s *discovery_info, void *user_data)
Called when the state of device discovery changes. 2.3.
int bt_gatt_client_set_characteristic_value_changed_cb(bt_gatt_h characteristic, bt_gatt_client_characteristic_value_changed_cb callback, void *user_data)
Registers a callback function to be invoked when the characteristic value is changed on the remote de...
void(* bt_adapter_visibility_duration_changed_cb)(int duration, void *user_data)
Called every second until the visibility mode is changed to BT_ADAPTER_VISIBILITY_MODE_NON_DISCOVERAB...
int bt_gatt_client_unset_service_changed_cb(bt_gatt_client_h client)
Unregisters a callback function. 3.0.
int bt_avrcp_target_notify_track(const char *title, const char *artist, const char *album, const char *genre, unsigned int track_num, unsigned int total_tracks, unsigned int duration)
Notifies the track to the remote device. 2.4 public http://tizen.org/privilege/bluetooth.
int bt_adapter_le_scan_filter_set_service_uuid(bt_scan_filter_h scan_filter, const char *uuid)
Sets the service UUID for the advertisements filter.
int bt_avrcp_unset_equalizer_state_changed_cb(void)
Unregisters a callback function that will be invoked when the equalizer state is changed. (e.g., by a TV remote control or other input devices). 2.4.
void(* bt_opp_client_push_responded_cb)(int result, const char *remote_address, void *user_data)
Called when OPP server responds to the push request. 2.3.
void(* bt_gatt_server_write_value_requested_cb)(const char *remote_address, int request_id, bt_gatt_server_h server, bt_gatt_h gatt_handle, bool response_needed, int offset, const char *value, int len, void *user_data)
Called when a value of a characteristic or descriptor's GATT handle has been changed.
int bt_adapter_le_get_scan_result_service_data_list(const bt_adapter_le_device_scan_result_info_s *info, bt_adapter_le_packet_type_e pkt_type, bt_adapter_le_service_data_s **data_list, int *count)
Gets the service data list from the scan result information. 2.3.1.
bt_service_class_t
Enumerations of service class. 2.3.
int bt_audio_connect(const char *remote_address, bt_audio_profile_type_e type)
Connects the remote device with the given audio profile, asynchronously.
int bt_gatt_server_create(bt_gatt_server_h *server)
Creates the GATT server's handle. 3.0.
int bt_adapter_get_visibility(bt_adapter_visibility_mode_e *mode, int *duration)
Gets the visibility mode of local Bluetooth adapter. 2.3.
int bt_hdp_set_connection_state_changed_cb(bt_hdp_connected_cb connected_cb, bt_hdp_disconnected_cb disconnected_cb, void *user_data) TIZEN_DEPRECATED_API
Registers a callback function that will be invoked when the connection state is changed. 2.3.
int bt_gatt_set_float_value(bt_gatt_h gatt_handle, bt_data_type_float_e type, int mantissa, int exponent, int offset)
Updates the value of a characteristic or descriptor's GATT handle using a float type's value...
int bt_adapter_get_address(char **local_address)
Gets the address of local Bluetooth adapter. 2.3.
int bt_adapter_foreach_bonded_device(bt_adapter_bonded_device_cb callback, void *user_data)
Retrieves the device information of all bonded devices. 2.3.
int bt_hid_host_initialize(bt_hid_host_connection_state_changed_cb connection_cb, void *user_data)
Initializes the Bluetooth HID (Human Interface Device) Host. 2.3.
int bt_device_unset_bond_created_cb(void)
Unregisters the callback function. 2.3.
int bt_avrcp_control_get_play_status(bt_avrcp_player_state_e *status)
Gets the play status of the remote device. 3.0.
The structure type containing the HID mouse event information. .
void(* bt_opp_client_push_finished_cb)(int result, const char *remote_address, void *user_data)
Called when the push request is finished. 2.3.
void(* bt_adapter_le_advertising_state_changed_cb)(int result, bt_advertiser_h advertiser, bt_adapter_le_advertising_state_e adv_state, void *user_data)
Called when the state of advertiser changes. 2.3.
void(* bt_device_connection_state_changed_cb)(bool connected, bt_device_connection_info_s *conn_info, void *user_data)
Called when the connection state is changed. 2.3.
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 reports from the HID Host. public http://tizen.org/privilege/bluetooth.
int bt_avrcp_target_notify_position(unsigned int position)
Notifies the current position of song to the remote device. 2.4 public http://tizen.org/privilege/bluetooth.
int bt_gatt_client_get_att_mtu(bt_gatt_client_h client, unsigned int *mtu)
Gets the ATT MTU value set for a connection. 4.0.
int bt_adapter_remove_remote_oob_data(const char *remote_address)
Deletes the Hash and Randomizer value, synchronously. 2.3 public http://tizen.org/privilege/blueto...
int bt_gatt_characteristic_foreach_descriptors(bt_gatt_h characteristic, bt_gatt_foreach_cb callback, void *user_data)
Invokes callback function on each descriptor that belongs to the specified characteristic. 2.3.1.
int bt_gatt_get_float_value(bt_gatt_h gatt_handle, bt_data_type_float_e type, int offset, float *value)
Gets the value of a characteristic or descriptor's GATT handle as a float type. 2.3.1.
int bt_avrcp_target_initialize(bt_avrcp_target_connection_state_changed_cb callback, void *user_data)
Initializes the Bluetooth AVRCP (Audio/Video Remote Control Profile) target service. 2.4.
int bt_avrcp_set_repeat_mode_changed_cb(bt_avrcp_repeat_mode_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the repeat mode is changed. (e.g., by a TV remote control or other input devices). 2.4.
int bt_socket_connect_rfcomm(const char *remote_address, const char *service_uuid)
Connects to a specific RFCOMM based service on a remote Bluetooth device UUID, asynchronously. 2.3 public http://tizen.org/privilege/bluetooth.
void(* bt_hid_host_connection_state_changed_cb)(int result, bool connected, const char *remote_address, void *user_data)
Called when the connection state is changed.
int bt_adapter_le_set_advertising_appearance(bt_advertiser_h advertiser, bt_adapter_le_packet_type_e pkt_type, int appearance)
Sets the external appearance of this device to advertise or scan response data. Please refer to the a...
int bt_gatt_client_create(const char *remote_address, bt_gatt_client_h *client)
Creates the GATT client handle. 2.3.1.
int bt_hid_host_disconnect(const char *remote_address)
Disconnects the remote device with the HID (Human Interface Device) service, asynchronously. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_gatt_client_write_value(bt_gatt_h gatt_handle, bt_gatt_client_request_completed_cb callback, void *user_data)
Writes the value of a characteristic or descriptor to the remote device asynchronously. 2.3.1 public http://tizen.org/privilege/bluetooth.
int bt_adapter_le_scan_filter_create(bt_scan_filter_h *scan_filter)
Creates a scan filter to find only LE advertisements which match specific requirements.
int bt_gatt_set_connection_state_changed_cb(bt_gatt_connection_state_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the connection state is changed. 2.3.
int bt_gatt_descriptor_create(const char *uuid, int permissions, const char *value, int value_length, bt_gatt_h *descriptor)
Creates the GATT characteristic descriptor. 3.0.
int bt_avrcp_control_set_repeat_mode(bt_avrcp_repeat_mode_e mode)
Sends the repeat change request to the remote device. 3.0 public http://tizen.org/privilege/blueto...
void(* bt_adapter_name_changed_cb)(char *device_name, void *user_data)
Called when adapter name changes. 2.3.
int bt_adapter_le_scan_filter_set_service_data(bt_scan_filter_h scan_filter, const char *uuid, const char *data, unsigned int data_len)
Sets the service data for the advertisements filter.
int bt_socket_unset_connection_state_changed_cb(void)
Unregisters the callback function. 2.3.
int bt_gatt_set_value(bt_gatt_h gatt_handle, const char *value, int value_length)
Updates the value of a characteristic or descriptor's GATT handle. 2.3.1.
void(* bt_pbap_phone_book_size_cb)(int result, const char *remote_address, int size, void *user_data)
Called when PBAP Phonebook size calculation completes.
int bt_hid_device_disconnect(const char *remote_address)
Disconnects from the HID Host device, asynchronously. public http://tizen.org/privilege/bluetooth...
int bt_avrcp_unset_scan_mode_changed_cb(void)
Unregisters a callback function that will be invoked when the scan mode is changed. (e.g., by a TV remote control or other input devices). 2.4.
int bt_adapter_le_scan_filter_set_manufacturer_data_with_mask(bt_scan_filter_h scan_filter, int manufacturer_id, const char *data, unsigned int data_len, const char *mask, unsigned int mask_len)
Sets the manufacturer data and the mask for the advertisements filter, to use for filtering by partia...
void(* bt_avrcp_scan_mode_changed_cb)(bt_avrcp_scan_mode_e scan, void *user_data)
Called when the scan mode is changed by the remote control device. 2.3.
void(* bt_gatt_server_notification_sent_cb)(int result, const char *remote_address, bt_gatt_server_h server, bt_gatt_h characteristic, bool completed, void *user_data)
Called when the sending notification / indication is done. 3.0.
int bt_adapter_unset_visibility_mode_changed_cb(void)
Unregisters the callback function. 2.3.
void * bt_scan_filter_h
The handle of a Bluetooth LE scan filter. 4.0.
bt_adapter_state_e
Enumerations of the Bluetooth adapter state. 2.3.
int bt_socket_send_data(int socket_fd, const char *data, int length)
Sends data to the connected device. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_adapter_le_scan_filter_set_service_uuid_with_mask(bt_scan_filter_h scan_filter, const char *uuid, const char *mask)
Sets the service UUID and the mask for the advertisements filter, to use for filtering by partial dat...
int bt_gatt_get_int_value(bt_gatt_h gatt_handle, bt_data_type_int_e type, int offset, int *value)
Gets the value of a characteristic or descriptor's GATT handle as an integer type. 2.3.1.
int bt_gatt_get_value(bt_gatt_h gatt_handle, char **value, int *value_length)
Gets the value of a characteristic or descriptor's GATT handle. 2.3.1.
int bt_ipsp_disconnect(const char *remote_address)
Disconnects from a remote device's IPSP service, asynchronously. 4.0 public http://tizen.org/privilege/bluetooth.
bt_pbap_vcard_format_e
Enumeration of vCard Formats. 3.0.
int bt_gatt_service_add_included_service(bt_gatt_h service, bt_gatt_h included_service)
Adds a service to a specified service as included service. 3.0.
int bt_adapter_le_scan_filter_set_manufacturer_data(bt_scan_filter_h scan_filter, int manufacturer_id, const char *data, unsigned int data_len)
Sets the manufacturer data for the advertisements filter.
int bt_avrcp_target_notify_repeat_mode(bt_avrcp_repeat_mode_e mode)
Notifies the repeat mode to the remote device. 2.4 public http://tizen.org/privilege/bluetooth.
int bt_adapter_set_visibility_duration_changed_cb(bt_adapter_visibility_duration_changed_cb callback, void *user_data)
Registers a callback function to be invoked every second.
void(* bt_hdp_disconnected_cb)(int result, const char *remote_address, unsigned int channel, void *user_data)
Called when the connection is disconnected. 2.3.
int bt_avrcp_set_track_info_changed_cb(bt_avrcp_track_info_changed_cb callback, void *user_data)
Registers a callback function that will be invoked when the track metadata is changed. (e.g., by a TV remote control or other input devices). 3.0.
bt_hid_param_type_e
Enumerations of the Bluetooth HID parameter type. .
int bt_avrcp_control_set_scan_mode(bt_avrcp_scan_mode_e mode)
Sends the scan mode change request to the remote device. 3.0 public http://tizen.org/privilege/bluetooth.
int bt_adapter_le_set_advertising_mode(bt_advertiser_h advertiser, bt_adapter_le_advertising_mode_e mode)
Sets advertising mode to control the advertising power and latency. 2.3.1 public http://tizen...
int bt_gatt_characteristic_get_write_type(bt_gatt_h characteristic, bt_gatt_write_type_e *write_type)
Gets the write type of the specified characteristic. 2.3.1.
void(* bt_device_bond_created_cb)(int result, bt_device_info_s *device_info, void *user_data)
Called when the process of creating bond finishes. 2.3.
int bt_adapter_le_set_advertising_connectable(bt_advertiser_h advertiser, bool connectable)
Sets whether the advertising type should be connectable or non-connectable. 2.3.1 public http://ti...
bt_avrcp_equalizer_state_e
Enumerations for the equalizer state. 2.4.
bt_pbap_folder_type_e
Enumeration of folder type. 3.0.
int bt_avrcp_control_set_equalizer_state(bt_avrcp_equalizer_state_e state)
Sends the equalizer state change request to the remote device. 3.0 public http://tizen.org/privilege/bluetooth.
int bt_opp_server_accept(bt_opp_server_transfer_progress_cb progress_cb, bt_opp_server_transfer_finished_cb finished_cb, const char *name, void *user_data, int *transfer_id)
Accepts the push request from the remote device. 2.3 public http://tizen.org/privilege/bluetooth.
int bt_adapter_le_get_scan_result_appearance(const bt_adapter_le_device_scan_result_info_s *info, bt_adapter_le_packet_type_e pkt_type, int *appearance)
Gets the appearance from the scan result information. 2.3.1.
void(* bt_avrcp_track_info_changed_cb)(bt_avrcp_metadata_attributes_info_s *track, void *user_data)
Called when the Song metadata information is changed by the remote target device. 3...
int bt_avrcp_control_get_scan_mode(bt_avrcp_scan_mode_e *mode)
Gets the scan mode of the remote device. 3.0.
int bt_adapter_le_scan_filter_set_service_solicitation_uuid(bt_scan_filter_h scan_filter, const char *uuid)
Sets the service solicitation UUID for the advertisements filter.
int bt_socket_destroy_rfcomm(int socket_fd)
Removes the RFCOMM server socket which was created using bt_socket_create_rfcomm(). 2.3 public http://tizen.org/privilege/bluetooth.
bt_adapter_visibility_mode_e
Enumerations of the Bluetooth visibility mode. 2.3.
int bt_gatt_service_add_characteristic(bt_gatt_h service, bt_gatt_h characteristic)
Adds a characteristic to a specified service. 3.0.
int bt_adapter_unset_visibility_duration_changed_cb(void)
Unregisters the callback function. 2.3.
int bt_gatt_server_initialize(void)
Initializes the GATT Server. 3.0.
int bt_gatt_client_set_att_mtu_changed_cb(bt_gatt_client_h client, bt_gatt_client_att_mtu_changed_cb callback, void *user_data)
Registers a callback function to be invoked when the ATT MTU is changed. 4.0.
int bt_adapter_le_is_2m_phy_supported(bool *is_supported)
Checks if LE 2M PHY feature is supported or not. 5.0.
void(* bt_device_bond_destroyed_cb)(int result, char *remote_address, void *user_data)
Called when the bond destroys. 2.3.
void(* bt_adapter_visibility_mode_changed_cb)(int result, bt_adapter_visibility_mode_e visibility_mode, void *user_data)
Called when the visibility mode changes. 2.3.