mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 09:14:32 +08:00
uuids inserted sorted
This commit is contained in:
parent
a3938593c9
commit
e463d272ad
@ -3356,7 +3356,8 @@ static void discover_services_cb(gpointer user_data, sdp_list_t *recs, int err)
|
||||
gchar *uuid_str = bt_uuid2string(svcclass->data);
|
||||
if (uuid_str && !g_slist_find_custom(uuids, uuid_str,
|
||||
(GCompareFunc) strcmp))
|
||||
uuids = g_slist_append(uuids, uuid_str);
|
||||
uuids = g_slist_insert_sorted(uuids, uuid_str,
|
||||
(GCompareFunc) strcmp);
|
||||
sdp_list_free(svcclass, free);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user