int bt_adapter_set_manufacturer_data(char *data, int len);
/**
+ * @brief Checks scan filter feature is supported or not.
+ * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
+ *
+ * @param[out] is_supported The Scan Filter feature support: (@c true = supported , @c false = not supported)
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_INITIALIZED Not initialized
+ * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #BT_ERROR_NOT_ENABLED Adapter is not enabled
+ * @retval #BT_ERROR_OPERATION_FAILED Operation failed
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
+ *
+ * @pre The state of local Bluetooth must be #BT_ADAPTER_ENABLED.
+ */
+int bt_adapter_le_is_scan_filter_supported(bool *is_supported);
+
+/**
* @internal
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE
* @brief Parse the samsung specific manufacturer data of discovered device.
return BT_ERROR_NONE;
}
+
+int bt_adapter_le_is_scan_filter_supported(bool *is_supported)
+{
+ int ret = BT_ERROR_NONE;
+ gboolean support = FALSE;
+
+ BT_CHECK_ADAPTER_STATUS();
+ BT_CHECK_INIT_STATUS();
+ BT_CHECK_INPUT_PARAMETER(is_supported);
+
+ ret = _bt_get_error_code(bluetooth_is_scan_filter_supported(&support));
+
+ if (ret != BT_ERROR_NONE) {
+ BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(ret), ret);
+ return ret;
+ }
+
+ *is_supported = support ? true : false;
+
+ return BT_ERROR_NONE;
+}