Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/3] Add UUID property to GATT service object
@ 2011-02-16 18:13 Elvis Pfützenreuter
  2011-02-16 18:13 ` [PATCH 2/3] Add generic descriptor support to Attribute API document Elvis Pfützenreuter
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Elvis Pfützenreuter @ 2011-02-16 18:13 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: epx

---
 attrib/client.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/attrib/client.c b/attrib/client.c
index ec5fcf2..0f9ba3e 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -941,6 +941,7 @@ static DBusMessage *prim_get_properties(DBusConnection *conn, DBusMessage *msg,
 	DBusMessageIter dict;
 	GSList *l;
 	char **chars;
+	const char *uuid;
 	int i;
 
 	reply = dbus_message_new_method_return(msg);
@@ -963,6 +964,9 @@ static DBusMessage *prim_get_properties(DBusConnection *conn, DBusMessage *msg,
 
 	dict_append_array(&dict, "Characteristics", DBUS_TYPE_OBJECT_PATH,
 								&chars, i);
+	uuid = prim->att->uuid;
+	dict_append_entry(&dict, "UUID", DBUS_TYPE_STRING, &uuid);
+
 	g_free(chars);
 
 	dbus_message_iter_close_container(&iter, &dict);
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-02-21 21:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-16 18:13 [PATCH 1/3] Add UUID property to GATT service object Elvis Pfützenreuter
2011-02-16 18:13 ` [PATCH 2/3] Add generic descriptor support to Attribute API document Elvis Pfützenreuter
2011-02-21 19:14   ` Claudio Takahasi
2011-02-21 19:39     ` Elvis Pfützenreuter
2011-02-21 21:14       ` Claudio Takahasi
2011-02-21 21:24         ` Elvis Pfützenreuter
2011-02-16 18:13 ` [PATCH 3/3] Implement generic descriptor access to Attribute API Elvis Pfützenreuter
2011-02-18 15:10 ` [PATCH 1/3] Add UUID property to GATT service object Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox