bt_ldev_set_filters()

This function allows you to enable or disable BT_EVT event triggering from bt_device_cb.

Synopsis:

#include <btapi/btdevice.h>
 
int bt_ldev_set_filters(int event, bool enable)

Since:

BlackBerry 10.3.0

Arguments:

event

The BT_EVT to enable or disable. Use BT_EVT_ALL_EVENT to represent all events.

enable

If set to true, the event triggers bt_device_cb. If set to false, the event does not trigger bt_device_cb.

Library:

libbtapi (For the qcc command, use the -l btapi option to link against this library)

Description:

Use BT_EVT_ALL_EVENT to enable or disable all events. The default value is no event filtering.

Returns:

EOK on success, -1 if an error occurred with the errno value set. These are some of the error codes that can be returned:
  • ENOMEM: Sufficient memory is not available to perform the request.
  • ESRVRFAULT: An internal error has occurred.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus