diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-01-20 16:09:57 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-01-20 16:09:57 +0100 |
commit | 99137f44f503bc7677cf9713467562308d0909d1 (patch) | |
tree | 08d44d6e962df6e0e8521e25adcceef086482088 /lib | |
parent | 200af10c730a78a78d9a1c49bb07d23799fea637 (diff) | |
download | gnome-bluetooth-99137f44f503bc7677cf9713467562308d0909d1.tar.gz |
lib: Add docs for has_connected_input_devices()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bluetooth-client.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c index 5697b3b4..5b62f695 100644 --- a/lib/bluetooth-client.c +++ b/lib/bluetooth-client.c @@ -1495,6 +1495,16 @@ bluetooth_client_connect_service_finish (BluetoothClient *client, return g_task_propagate_boolean (task, error); } +/** + * bluetooth_client_has_connected_input_devices: + * @client: a #BluetoothClient + * + * Returns whether there are connected devices with the input capability. + * This can be used by an OS user interface to warn the user before disabling + * Bluetooth so that the user isn't stranded without any input devices. + * + * Returns: %TRUE if there are connected input devices. + **/ gboolean bluetooth_client_has_connected_input_devices (BluetoothClient *client) { |