bt_ldev_get_feature_enabled()

Retrieve the enabled status of a feature or profile.

Synopsis:

#include <btapi/btdevice.h>
 
int bt_ldev_get_feature_enabled(const bt_feature_t feature_id)

Since:

BlackBerry 10.1.0

Arguments:

feature_id

Specifies which feature or profile to check.

Library:

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

Description:

This function returns the current enabled status for a particular Bluetooth feature or profile. The bitmask returned indicates whether the requested item is enabled or disabled due to IT policy or some other reason (see BT_FEATURE_STATUS_*).

Returns:

0 if the feature is enabled, a bit-mask showing the disabled status, or -1 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.
  • 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