bt_ldev_get_services()

Retrieve the list of local services.

Synopsis:

#include <btapi/btdevice.h>
 
char** bt_ldev_get_services()

Since:

BlackBerry 10.3.0

Arguments:

Library:

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

Description:

Retrieves an array of services that we support. The following example shows you how to retrieve a list of local services:

 char **services_array;
 if( ( services_array = bt_ldev_get_services() ) != NULL)
 {
     //work with the services listing
     bt_ldev_free_services( services_array );
 }

Returns:

An allocated, NULL-terminated array of local service strings is returned upon success, NULL with the errno set otherwise. Any errno value other than the following indicates that a system error has occurred:
  • ENOMEM: There was insufficient memory to allocate required structures.

Last modified: 2014-05-14



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

comments powered by Disqus