LE Onfound and Onlost feature
BTIF and stack layer changes for onfound/onlost feature
Change-Id: Id52cdd5855ca8c0ff276b42613b51c4cd3882bfc
diff --git a/bta/include/bta_api.h b/bta/include/bta_api.h
index 9b3bea4..e43b23b 100644
--- a/bta/include/bta_api.h
+++ b/bta/include/bta_api.h
@@ -1132,9 +1132,16 @@
typedef void (tBTA_BLE_SCAN_REP_CBACK) (tBTA_DM_BLE_REF_VALUE ref_value, UINT8 report_format,
UINT8 num_records, UINT16 data_len,
UINT8* p_rep_data, tBTA_STATUS status);
+
typedef void (tBTA_BLE_SCAN_SETUP_CBACK) (tBTA_BLE_BATCH_SCAN_EVT evt, tBTA_DM_BLE_REF_VALUE ref_value,
tBTA_STATUS status);
+typedef void (tBTA_BLE_TRACK_ADV_CMPL_CBACK)(int action, tBTA_STATUS status,
+ tBTA_DM_BLE_PF_AVBL_SPACE avbl_space, tBTA_DM_BLE_REF_VALUE ref_value);
+
+typedef void (tBTA_BLE_TRACK_ADV_CBACK)(int filt_index, tBLE_ADDR_TYPE addr_type, BD_ADDR bda,
+ int adv_state, tBTA_DM_BLE_REF_VALUE ref_value);
+
#else
typedef UINT8 tBTA_DM_BLE_SEC_ACT;
#endif
@@ -2413,7 +2420,7 @@
** p_setup_cback - Setup callback
** p_thres_cback - Threshold callback
** p_rep_cback - Reports callback
-** p_ref - Ref pointer
+** ref_value - Reference value
**
** Returns None
**
@@ -2437,6 +2444,7 @@
** scan_window - Scan window
** discard_rule -Discard rules
** addr_type - Address type
+** ref_value - Reference value
**
** Returns None
**
@@ -2454,6 +2462,7 @@
** Description This function is called to read the batch scan reports
**
** Parameters scan_mode -Batch scan mode
+** ref_value - Reference value
**
** Returns None
**
@@ -2467,7 +2476,7 @@
**
** Description This function is called to disable the batch scanning
**
-** Parameters None
+** Parameters ref_value - Reference value
**
** Returns None
**
@@ -2480,7 +2489,9 @@
**
** Description This function is called to enable the adv data payload filter
**
-** Parameters action -1: enable the filter condition, 0 - disables the filter condition
+** Parameters action - enable or disable the APCF feature
+** p_cmpl_cback - Command completed callback
+** ref_value - Reference value
**
** Returns void
**
@@ -2495,8 +2506,12 @@
**
** Description This function is called to setup the filter params
**
-** Parameters action: to read/write/clear
-** filt_index - filter index
+** Parameters p_target: enable the filter condition on a target device; if NULL
+** filt_index - Filter index
+** p_filt_params -Filter parameters
+** ref_value - Reference value
+** action - Add, delete or clear
+** p_cmpl_back - Command completed callback
**
** Returns void
**
@@ -2516,10 +2531,11 @@
** condition.
**
** Parameters action: to read/write/clear
-** cond_type: filter condition type.
-** filt_index - filter index
+** cond_type: filter condition type
+** filt_index - Filter index
** p_cond: filter condition parameter
-** ref_value: Reference
+** p_cmpl_back - Command completed callback
+** ref_value - Reference value
**
** Returns void
**
@@ -2531,6 +2547,22 @@
tBTA_DM_BLE_PF_CFG_CBACK *p_cmpl_cback,
tBTA_DM_BLE_REF_VALUE ref_value);
+
+/*******************************************************************************
+**
+** Function BTA_DmBleTrackAdvertiser
+**
+** Description This function is called to track the advertiser
+**
+** Parameters ref_value - Reference value
+** p_track_adv_cback - ADV callback
+**
+** Returns None
+**
+*******************************************************************************/
+BTA_API extern void BTA_DmBleTrackAdvertiser(tBTA_DM_BLE_REF_VALUE ref_value,
+ tBTA_BLE_TRACK_ADV_CBACK *p_track_adv_cback);
+
#endif
#ifdef __cplusplus