Deregister to disallow incoming connections.
Synopsis:
#include <btapi/bthid.h>
int bt_hid_deregister()
Arguments:
Library:
libbtapi (For the qcc command, use the -l btapi option to link against this library)
Description:
An application calls this function to disallow incoming HID device connections from a remote Bluetooth device (Host).
Returns:
0 if the service is deregistered, or
-1 with the
errno set otherwise. The error codes that can be returned are as follows:
- EPERM: The bt_hid_init() function was not called or did not complete successfully.
- ENOMEM: Insufficient memory is available to perform the request.
- ESRVRFAULT: An internal error has occurred.