Skip to contentSkip to conversation

Fix property type of Main Channel of Health plugin

PATCH In review Jaikumar Ganesh 2 participants 2 messages Apr 29, 2011 – May 2, 2011 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix property type of Main Channel of Health plugin

The property type must be DBUS_TYPE_OBJECT_PATH instead of DBUS_TYPE_STRING. This is in sync with the documentation and with the other places of usage such as the property change signal.

---
 health/hdp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
health/hdp.c +1 -1
index 6f2c89d..d53ea80 100644
@@ -2058,7 +2058,7 @@ static DBusMessage *device_get_properties(DBusConnection *conn,
 		path = g_strdup(device->fr->path);
 	else
 		path = g_strdup("");
-	dict_append_entry(&dict, "MainChannel", DBUS_TYPE_STRING, &path);
+	dict_append_entry(&dict, "MainChannel", DBUS_TYPE_OBJECT_PATH, &path);
 	g_free(path);
 	dbus_message_iter_close_container(&iter, &dict);
 
Signature · 1 line
1.7.3.1
#1 lore raw

Hi Jaikumar,

Quoted 7 lines · Jaikumar Ganesh

The property type must be DBUS_TYPE_OBJECT_PATH instead of DBUS_TYPE_STRING. This is in sync with the documentation and with the other places of usage such as the property change signal.

---
 health/hdp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Pushed upstream. Thanks.

Johan