diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-01-20 12:30:23 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-01-20 15:14:51 +0100 |
commit | c2255b791f8030260106ed20a6dfc350843df5d9 (patch) | |
tree | cf12f90cac2e42071cfe8a4b3ac24c1591c9e3a1 /lib/bluetooth-client.c | |
parent | 68c2fba39676d16568e8b8aa076b43313b806eef (diff) | |
download | gnome-bluetooth-c2255b791f8030260106ed20a6dfc350843df5d9.tar.gz |
lib: Remove bluetooth_client_get_connectable() API
Diffstat (limited to 'lib/bluetooth-client.c')
-rw-r--r-- | lib/bluetooth-client.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c index 652d6777..b829984f 100644 --- a/lib/bluetooth-client.c +++ b/lib/bluetooth-client.c @@ -82,19 +82,6 @@ enum { static guint signals[LAST_SIGNAL] = { 0 }; -static const char *connectable_uuids[] = { - "HSP", - "AudioSource", - "AudioSink", - "A/V_RemoteControlTarget", - "A/V_RemoteControl", - "Headset_-_AG", - "Handsfree", - "HandsfreeAudioGateway", - "HumanInterfaceDeviceService", - "Human Interface Device", -}; - G_DEFINE_TYPE(BluetoothClient, bluetooth_client, G_TYPE_OBJECT) static BluetoothDevice * @@ -145,21 +132,6 @@ device_list_uuids (const gchar * const *uuids) return (char **) g_ptr_array_free (ret, FALSE); } -gboolean -bluetooth_client_get_connectable(const char **uuids) -{ - int i, j; - - for (i = 0; uuids && uuids[i] != NULL; i++) { - for (j = 0; j < G_N_ELEMENTS (connectable_uuids); j++) { - if (g_str_equal (connectable_uuids[j], uuids[i])) - return TRUE; - } - } - - return FALSE; -} - static const char * phone_oui_to_icon_name (const char *bdaddr) { |