bt_rdev_refresh_services_async()

Initiates an asynchronous refresh of the remote device services.

Synopsis:

#include <btapi/btdevice.h>
 
int bt_rdev_refresh_services_async(const bt_remote_device_t *remote_device, bt_rdev_refresh_services_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 triggers a refresh of the services advertised for a remote device. If the device is not already paired, this function triggers the first fetch of the services that the remote device advertises, provided the remote device is in the right security mode.

Returns:

EOK is returned upon success, -1 with the errno set otherwise. Possible errno values include:
  • EINVAL: An invalid parameter was passed in.

Last modified: 2014-05-14



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

comments powered by Disqus