aboutsummaryrefslogtreecommitdiff
path: root/btif/include/btif_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'btif/include/btif_api.h')
-rw-r--r--btif/include/btif_api.h181
1 files changed, 54 insertions, 127 deletions
diff --git a/btif/include/btif_api.h b/btif/include/btif_api.h
index f9b888691..3a7c2d7f7 100644
--- a/btif/include/btif_api.h
+++ b/btif/include/btif_api.h
@@ -63,19 +63,6 @@ bt_status_t btif_enable_bluetooth(void);
/*******************************************************************************
*
- * Function btif_disable_bluetooth
- *
- * Description Inititates shutdown of Bluetooth system.
- * Any active links will be dropped and device entering
- * non connectable/discoverable mode
- *
- * Returns void
- *
- ******************************************************************************/
-bt_status_t btif_disable_bluetooth(void);
-
-/*******************************************************************************
- *
* Function btif_cleanup_bluetooth
*
* Description Cleanup BTIF state.
@@ -105,24 +92,23 @@ bool is_restricted_mode(void);
/*******************************************************************************
*
- * Function is_niap_mode_
+ * Function is_common_criteria_mode
*
- * Description Checks if BT was enabled in single user mode. In this
- * mode, use of keystore for key attestation of LTK is limitee
- * to this mode defined by UserManager.
+ * Description Check if BT is enabled in common criteria mode. In this
+ * mode, will use the LTK from the keystore to authenticate.
*
* Returns bool
*
******************************************************************************/
-bool is_niap_mode(void);
+bool is_common_criteria_mode(void);
/*******************************************************************************
*
- * Function get_niap_config_compare_result
+ * Function get_common_criteria_config_compare_result
*
- * Description Get the niap config compare result for confirming the config
- * checksum compare result. When the niap mode doesn't enable,
- * it should be all pass (0b11).
+ * Description Get the common criteria config compare result for confirming
+ * the config checksum compare result. When the common criteria
+ * mode doesn't enable, it should be all pass (0b11).
* Bit define:
* CONFIG_FILE_COMPARE_PASS = 0b01
* CONFIG_BACKUP_COMPARE_PASS = 0b10
@@ -130,7 +116,7 @@ bool is_niap_mode(void);
* Returns int
*
******************************************************************************/
-int get_niap_config_compare_result(void);
+int get_common_criteria_config_compare_result(void);
/*******************************************************************************
*
@@ -150,10 +136,10 @@ bool is_atv_device(void);
*
* Description Fetches all local adapter properties
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_get_adapter_properties(void);
+void btif_get_adapter_properties(void);
+
+bt_property_t* property_deep_copy(const bt_property_t* prop);
/*******************************************************************************
*
@@ -161,10 +147,8 @@ bt_status_t btif_get_adapter_properties(void);
*
* Description Fetches property value from local cache
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_get_adapter_property(bt_property_type_t type);
+void btif_get_adapter_property(bt_property_type_t type);
/*******************************************************************************
*
@@ -173,10 +157,8 @@ bt_status_t btif_get_adapter_property(bt_property_type_t type);
* Description Updates core stack with property value and stores it in
* local cache
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_set_adapter_property(const bt_property_t* property);
+void btif_set_adapter_property(bt_property_t* property);
/*******************************************************************************
*
@@ -184,11 +166,9 @@ bt_status_t btif_set_adapter_property(const bt_property_t* property);
*
* Description Fetches the remote device property from the NVRAM
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_get_remote_device_property(RawAddress* remote_addr,
- bt_property_type_t type);
+void btif_get_remote_device_property(RawAddress remote_addr,
+ bt_property_type_t type);
/*******************************************************************************
*
@@ -196,10 +176,8 @@ bt_status_t btif_get_remote_device_property(RawAddress* remote_addr,
*
* Description Fetches all the remote device properties from NVRAM
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_get_remote_device_properties(RawAddress* remote_addr);
+void btif_get_remote_device_properties(RawAddress remote_addr);
/*******************************************************************************
*
@@ -209,24 +187,9 @@ bt_status_t btif_get_remote_device_properties(RawAddress* remote_addr);
* Currently, BT_PROPERTY_REMOTE_FRIENDLY_NAME is the only
* remote device property that can be set
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_set_remote_device_property(RawAddress* remote_addr,
- const bt_property_t* property);
-
-/*******************************************************************************
- *
- * Function btif_get_remote_service_record
- *
- * Description Looks up the service matching uuid on the remote device
- * and fetches the SCN and service_name if the UUID is found
- *
- * Returns bt_status_t
- *
- ******************************************************************************/
-bt_status_t btif_get_remote_service_record(const RawAddress& remote_addr,
- const bluetooth::Uuid& uuid);
+void btif_set_remote_device_property(RawAddress* remote_addr,
+ bt_property_t* property);
/*******************************************************************************
* BTIF DM API
@@ -238,11 +201,8 @@ bt_status_t btif_get_remote_service_record(const RawAddress& remote_addr,
*
* Description Start device discovery/inquiry
*
- *
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_dm_start_discovery(void);
+void btif_dm_start_discovery(void);
/*******************************************************************************
*
@@ -250,21 +210,18 @@ bt_status_t btif_dm_start_discovery(void);
*
* Description Cancels search
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_dm_cancel_discovery(void);
+void btif_dm_cancel_discovery(void);
+bool btif_dm_pairing_is_busy();
/*******************************************************************************
*
* Function btif_dm_create_bond
*
* Description Initiate bonding with the specified device
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_dm_create_bond(const RawAddress* bd_addr, int transport);
+void btif_dm_create_bond(const RawAddress bd_addr, int transport);
/*******************************************************************************
*
@@ -272,12 +229,11 @@ bt_status_t btif_dm_create_bond(const RawAddress* bd_addr, int transport);
*
* Description Initiate bonding with the specified device using OOB data.
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_dm_create_bond_out_of_band(
- const RawAddress* bd_addr, int transport,
- const bt_out_of_band_data_t* oob_data);
+void btif_dm_create_bond_out_of_band(const RawAddress bd_addr,
+ tBT_TRANSPORT transport,
+ const bt_oob_data_t p192_data,
+ const bt_oob_data_t p256_data);
/*******************************************************************************
*
@@ -285,10 +241,8 @@ bt_status_t btif_dm_create_bond_out_of_band(
*
* Description Initiate bonding with the specified device
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_dm_cancel_bond(const RawAddress* bd_addr);
+void btif_dm_cancel_bond(const RawAddress bd_addr);
/*******************************************************************************
*
@@ -296,10 +250,8 @@ bt_status_t btif_dm_cancel_bond(const RawAddress* bd_addr);
*
* Description Removes bonding with the specified device
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_dm_remove_bond(const RawAddress* bd_addr);
+void btif_dm_remove_bond(const RawAddress bd_addr);
/*******************************************************************************
*
@@ -318,11 +270,9 @@ uint16_t btif_dm_get_connection_state(const RawAddress* bd_addr);
*
* Description BT legacy pairing - PIN code reply
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_dm_pin_reply(const RawAddress* bd_addr, uint8_t accept,
- uint8_t pin_len, bt_pin_code_t* pin_code);
+void btif_dm_pin_reply(const RawAddress bd_addr, uint8_t accept,
+ uint8_t pin_len, bt_pin_code_t pin_code);
/*******************************************************************************
*
@@ -343,12 +293,9 @@ bt_status_t btif_dm_passkey_reply(const RawAddress* bd_addr, uint8_t accept,
* Description BT SSP Reply - Just Works, Numeric Comparison & Passkey
* Entry
*
- * Returns bt_status_t
- *
******************************************************************************/
-bt_status_t btif_dm_ssp_reply(const RawAddress* bd_addr,
- bt_ssp_variant_t variant, uint8_t accept,
- uint32_t passkey);
+void btif_dm_ssp_reply(const RawAddress bd_addr, bt_ssp_variant_t variant,
+ uint8_t accept);
/*******************************************************************************
*
@@ -370,31 +317,7 @@ bt_status_t btif_dm_get_adapter_property(bt_property_t* prop);
* Returns bt_status_t
*
******************************************************************************/
-bt_status_t btif_dm_get_remote_service_record(const RawAddress& remote_addr,
- const bluetooth::Uuid& uuid);
-
-/*******************************************************************************
- *
- * Function btif_dm_get_remote_services
- *
- * Description Start SDP to get remote services
- *
- * Returns bt_status_t
- *
- ******************************************************************************/
-bt_status_t btif_dm_get_remote_services(const RawAddress& remote_addr);
-
-/*******************************************************************************
- *
- * Function btif_dm_get_remote_services_by_transport
- *
- * Description Start SDP to get remote services by transport
- *
- * Returns bt_status_t
- *
- ******************************************************************************/
-bt_status_t btif_dm_get_remote_services_by_transport(RawAddress* remote_addr,
- int transport);
+void btif_dm_get_remote_services(const RawAddress remote_addr, int transport);
/*******************************************************************************
*
@@ -403,10 +326,10 @@ bt_status_t btif_dm_get_remote_services_by_transport(RawAddress* remote_addr,
* Description Configure Test Mode - 'enable' to 1 puts the device in test
* mode and 0 exits test mode
*
- * Returns BT_STATUS_SUCCESS on success
- *
******************************************************************************/
-bt_status_t btif_dut_mode_configure(uint8_t enable);
+void btif_dut_mode_configure(uint8_t enable);
+
+bool btif_is_dut_mode();
/*******************************************************************************
*
@@ -414,21 +337,14 @@ bt_status_t btif_dut_mode_configure(uint8_t enable);
*
* Description Sends a HCI Vendor specific command to the controller
*
- * Returns BT_STATUS_SUCCESS on success
- *
******************************************************************************/
-bt_status_t btif_dut_mode_send(uint16_t opcode, uint8_t* buf, uint8_t len);
+void btif_dut_mode_send(uint16_t opcode, uint8_t* buf, uint8_t len);
-/*******************************************************************************
- *
- * Function btif_le_test_mode
- *
- * Description Sends a HCI BLE Test command to the Controller
- *
- * Returns BT_STATUS_SUCCESS on success
- *
- ******************************************************************************/
-bt_status_t btif_le_test_mode(uint16_t opcode, uint8_t* buf, uint8_t len);
+void btif_ble_transmitter_test(uint8_t tx_freq, uint8_t test_data_len,
+ uint8_t packet_payload);
+
+void btif_ble_receiver_test(uint8_t rx_freq);
+void btif_ble_test_end();
/*******************************************************************************
*
@@ -463,4 +379,15 @@ bt_status_t btif_config_hci_snoop_log(uint8_t enable);
******************************************************************************/
void btif_debug_bond_event_dump(int fd);
+/*******************************************************************************
+ *
+ * Function btif_set_dynamic_audio_buffer_size
+ *
+ * Description Set dynamic audio buffer size
+ *
+ * Returns BT_STATUS_SUCCESS on success
+ *
+ ******************************************************************************/
+bt_status_t btif_set_dynamic_audio_buffer_size(int codec, int size);
+
#endif /* BTIF_API_H */