bt_rdev_sdp_search_async()

Initiates an asynchronous SDP service record search.

Synopsis:

#include <btapi/btdevice.h>
 
int bt_rdev_sdp_search_async(const bt_remote_device_t *remote_device, char *pattern[], bt_rdev_sdp_cb cb, void *user_data)

Since:

BlackBerry 10.3.0

Arguments:

remote_device

A pointer to the remote device structure.

pattern

Array of the NULL-terminated string which represents the search pattern, or NULL for Public Browse Group search.

cb

Callback function that is invoked when the search is complete.

user_data

A user specified pointer that is returned during the callback.

Library:

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

Description:

This function initiates an SDP record search with a specified search pattern on a specified remote device. It sends a non-blocking SDP search request, and calls the specified callback when the search is completed.

Returns:

0 is returned upon success, -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.

Last modified: 2014-05-14



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

comments powered by Disqus