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)
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).