bt_rdev_delete_async()

Delete a remote Bluetooth-enabled device asynchronously.

Synopsis:

#include <btapi/btdevice.h>
 
int bt_rdev_delete_async(const bt_remote_device_t *remote_device, bt_rdev_delete_cb cb, void *user_data)

Since:

BlackBerry 10.3.0

Arguments:

remote_device

A pointer to a remote device structure.

cb

The callback function to be executed when the operation has completed.

user_data

A user specified pointer which will be returned during the callback.

Library:

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

Description:

This function removes the pairing information of a remote device, essentially deleting it from the list of paired devices.

Returns:

0 is returned upon successful deletion, -1 with the errno set otherwise. Any errno value other than the following indicates that a system error has occurred:
  • EINVAL: An invalid value was passed in for remote_device.
  • ENOMEM: There was insufficient memory to allocate required structures.
  • ENOENT: A required data entry was not found (internal error).
  • EPERM: There was an error accessing required system data (internal error).

Last modified: 2014-05-14



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

comments powered by Disqus