18 #ifndef __TIZEN_NETWORK_BLUETOOTH_TYPE_H__ 19 #define __TIZEN_NETWORK_BLUETOOTH_TYPE_H__ 24 #include "tizen_error.h" 957 (
int result,
bool ipsp_initialized,
void *user_data);
972 (
int result,
bool connected,
const char *remote_address,
const char *iface_name,
void *user_data);
1099 (
int result, bt_adapter_visibility_mode_e visibility_mode,
void *user_data);
1187 bt_advertiser_h advertiser, bt_adapter_le_advertising_state_e adv_state,
void *user_data);
1260 (bt_device_authorization_e authorization,
char *remote_address,
void *user_data);
1595 bt_hdp_channel_type_e type,
unsigned int channel,
void *user_data);
1692 bt_gatt_h request_handle,
void *user_data);
1710 char *value,
int len,
void *user_data);
1741 bt_gatt_client_service_change_type_e change_type,
1742 const char* service_uuid,
void *user_data);
1792 int request_id, bt_gatt_server_h server,
1793 bt_gatt_h gatt_handle,
bool response_needed,
int offset,
1794 const char *value,
int len,
void *user_data);
1818 int request_id, bt_gatt_server_h server, bt_gatt_h gatt_handle,
1819 int offset,
void *user_data);
1839 bt_gatt_server_h server, bt_gatt_h gatt_handle,
void *user_data);
1859 bt_gatt_server_h server, bt_gatt_h gatt_handle,
void *user_data);
1884 const char *remote_address, bt_gatt_server_h server,
1885 bt_gatt_h characteristic,
bool completed,
void *user_data);
1954 unsigned char key[8];
2026 bool connected,
const char *remote_address,
void *user_data);
2078 const char *remote_address,
void *user_data);
2098 int size,
void *user_data);
2119 const char *vcf_file,
void *user_data);
bt_socket_role_e
Enumerations of connected Bluetooth device event role. 2.3.
bt_gatt_write_type_e
Enumerations of the write type. 2.3.1.
Service Discovery Protocol (SDP) data structure.
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.
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.
bt_data_type_int_e
Enumerations of the integer type for GATT handle's value. 2.3.1.
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.
void * bt_advertiser_h
The handle to control Bluetooth LE advertising. 2.3.
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.
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.
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.
bt_adapter_le_scan_filter_type_e
Enumeration for the scan filter type. 4.0.
bt_socket_connection_state_e
Enumerations of Bluetooth socket connection state. 2.3.
bt_hdp_channel_type_e
Enumerations for the data channel type. 2.3.
bt_avrcp_scan_mode_e
Enumerations for the scan mode. 2.4.
void * bt_call_list_h
The handle of calls state. 2.3.
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 manufacturer_data_len
bt_device_address_type_e
Enumerations of device address type. 2.3.
bt_data_type_float_e
Enumerations of the float type for GATT handle's value. 2.3.1.
bt_minor_device_class_e
Enumerations of minor device class. 2.3.
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.
bt_avrcp_player_command_e
Enumeration for the player control commands. 3.0.
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.
bt_avrcp_player_state_e
Enumerations for the player state. 3.0.
bt_pbap_search_field_e
Enumeration of phone book search fields. 3.0.
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.
bt_major_device_class_e major_device_class
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.
bt_pbap_field_e
Enumeration of PBAP fields. 3.0.
bt_device_connection_link_type_e link
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.
bt_avrcp_shuffle_mode_e
Enumerations for the shuffle mode. 2.4.
const char * contact_name
bool(* bt_adapter_bonded_device_cb)(bt_device_info_s *device_info, void *user_data)
Called when you get bonded devices repeatedly. 2.3.
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.
bt_major_device_class_e
Enumerations of major device class. 2.3.
The structure type containing the HID keyboard event information.
bt_device_disconnect_reason_e
Enumerations of device disconnect reason. 2.3.
bt_gatt_service_type_e
Enumerations of the service type. 2.3.1.
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.
void(* bt_hrp_connection_state_changed_cb)(int result, bool connected, const char *remote_address)
Called when the connection state is changed.
Structure of le scan result information. 2.3.1.
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.
void * bt_gatt_h
The handle of a service, characteristic or descriptor. 2.3.1.
bt_device_disconnect_reason_e disconn_reason
bt_pbap_sort_order_e
Enumeration of sorting orders. 3.0.
bt_ag_multi_call_handling_event_e
Enumerations for the multi call handling event. 2.3.
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.
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.
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.
void(* bt_opp_server_connection_requested_cb)(const char *remote_address, void *user_data)
Called when an OPP connection is requested.
bt_adapter_le_advertising_state_e
Enumerations of the Bluetooth advertising state. 2.3.
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.
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.
Attribute protocol MTU change information structure. 4.0.
Rfcomm connection data used for exchanging data between Bluetooth devices. 2.3.
bt_adapter_le_scan_mode_e
Enumerations of the Bluetooth le scan mode. 3.0.
void(* bt_ag_microphone_gain_changed_cb)(int gain, void *user_data)
Called when the microphone gain of the remote device is changed. 2.3.
bt_hid_param_type_e param_type
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.
void * bt_gatt_server_h
The handle of a GATT server. 3.0.
LE service data structure. 2.3.1.
bt_hid_header_type_e
Enumerations of the Bluetooth HID header type. .
Device connection information structure. 2.3.
int manufacturer_data_len
bt_hid_mouse_button_e
Enumerations of the Bluetooth HID mouse's button. .
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.
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.
bt_hid_handshake_type_e
Enumerations of the Bluetooth HID handshake type. .
Structure of device discovery information. 2.3.
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.
bt_device_le_connection_mode_e
Enumerations of the Bluetooth device's LE connection mode. 3.0.
bt_panu_service_type_e
Enumerations for the types of PAN (Personal Area Networking) service. 2.3.
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.
bt_gatt_client_service_change_type_e
Enumerations of gatt server's service changing mode. 3.0.
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.
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.
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.
bt_adapter_device_discovery_state_e
Enumerations of the discovery state of Bluetooth device. 2.3.
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.
void(* bt_hrp_sensor_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...
bt_gatt_att_request_type_e
Enumerations of the remote device request types for attributes. 3.0.
void * bt_gatt_client_h
The handle of a GATT client which is associated with a remote device. 2.3.1.
bt_ag_call_handling_event_e
Enumerations for the call handling event. 2.3.
bt_appearance_type_e
Enumerations of gap appearance type. 2.3.
Structure of RFCOMM received data. 2.3.
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.
bt_adapter_le_advertising_mode_e
Enumerations of the Bluetooth advertising mode. 2.3.1.
bt_major_service_class_e
Enumerations of major service class. 2.3.
bt_gatt_property_e
Enumerations of the characteristic's property. 2.3.1.
bt_audio_profile_type_e
Enumerations for the types of profiles related with audio. 2.3.
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.
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.
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...
bt_socket_role_e local_role
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.
bt_service_class_t
Enumerations of service class. 2.3.
The structure type containing vCard information. 3.0.
bt_device_connection_link_type_e
Enumerations of connection link type. 2.3.
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.
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.
bt_hid_header_type_e header_type
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.
The structure type containing data received from the HID Host. .
void(* bt_adapter_name_changed_cb)(char *device_name, void *user_data)
Called when adapter name changes. 2.3.
bt_appearance_type_e appearance
bt_device_address_type_e address_type
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.
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.
bt_minor_device_class_e minor_device_class
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.
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 major_service_class_mask
Class structure of device and service. 2.3.
bt_pbap_vcard_format_e
Enumeration of vCard Formats. 3.0.
bt_gatt_permission_e
Enumerations of the attribute's permission. 3.0.
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.
bt_hid_param_type_e
Enumerations of the Bluetooth HID parameter type. .
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.
bt_error_e
Enumerations of Bluetooth error codes. 2.3.
bt_avrcp_equalizer_state_e
Enumerations for the equalizer state. 2.4.
void(* bt_ag_speaker_gain_changed_cb)(int gain, void *user_data)
Called when the speaker gain of the remote device is changed. 2.3.
bt_pbap_folder_type_e
Enumeration of folder type. 3.0.
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...
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.
bt_adapter_visibility_mode_e
Enumerations of the Bluetooth visibility mode. 2.3.
bt_adapter_le_advertising_filter_policy_e
Enumerations of the Bluetooth advertising filter policy. 2.3.
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.