]> code.delx.au - pulseaudio/commitdiff
bluetooth: Remove the 'bluez.name' property
authorJoão Paulo Rechi Vita <jprvita@openbossa.org>
Sat, 27 Apr 2013 00:24:52 +0000 (21:24 -0300)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 3 Jun 2013 19:08:41 +0000 (00:38 +0530)
The 'Name' property of the Device interface became optional in BlueZ 5
and may not be present anymore (that happens when testing against the
PTS 4.7.0), so it's better not to expose it to clients so they don't
rely on its existence.

src/modules/bluetooth/module-bluetooth-device.c

index edc2ab1b6ae1fb7d8a838bacd54d6eff00645be1..6ae357014f80549223efe19725554acb480d4d3f 100644 (file)
@@ -2262,7 +2262,6 @@ static int add_card(struct userdata *u) {
 
     pa_proplist_sets(data.proplist, "bluez.path", device->path);
     pa_proplist_setf(data.proplist, "bluez.class", "0x%06x", (unsigned) device->class);
-    pa_proplist_sets(data.proplist, "bluez.name", device->name);
     pa_proplist_sets(data.proplist, "bluez.alias", device->alias);
     data.name = get_name("card", u->modargs, device->address, &b);
     data.namereg_fail = b;