diff options
| author | Cidorvan Leite <cidorvan.leite@openbossa.org> | 2008-03-13 19:53:03 +0000 | 
|---|---|---|
| committer | Cidorvan Leite <cidorvan.leite@openbossa.org> | 2008-03-13 19:53:03 +0000 | 
| commit | e463d272ad1f3a04359262a27fb9d71e4819cb36 (patch) | |
| tree | 411ef5482d54c37790c1f1d995d65f0026164979 | |
| parent | a3938593c99180585f3ce48b7717b11188d0c813 (diff) | |
uuids inserted sorted
| -rw-r--r-- | hcid/adapter.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/hcid/adapter.c b/hcid/adapter.c index 461b8064..c9716dfd 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -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);  		} | 
