From: Per Thomas Jahr <perja@extern.uio.no>
To: linux-bluetooth@vger.kernel.org
Cc: Per Thomas Jahr <perja@extern.uio.no>
Subject: [PATCH BlueZ] client: Include UUID when listing attributes
Date: Mon, 29 Aug 2016 11:14:49 +0200 [thread overview]
Message-ID: <1472462089-22900-2-git-send-email-perja@extern.uio.no> (raw)
In-Reply-To: <1472462089-22900-1-git-send-email-perja@extern.uio.no>
Show the full UUID for services, characteristics and descriptors.
---
client/gatt.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/client/gatt.c b/client/gatt.c
index fee1cf9..201d668 100644
--- a/client/gatt.c
+++ b/client/gatt.c
@@ -75,12 +75,13 @@ static void print_service(GDBusProxy *proxy, const char *description)
if (!text)
text = uuid;
- rl_printf("%s%s%s%s Service\n\t%s\n\t%s\n",
+ rl_printf("%s%s%s%s Service\n\t%s\n\t%s\n\t%s\n",
description ? "[" : "",
description ? : "",
description ? "] " : "",
primary ? "Primary" : "Secondary",
- g_dbus_proxy_get_path(proxy),
+ g_dbus_proxy_get_path(proxy),
+ uuid,
text);
}
@@ -118,12 +119,13 @@ static void print_characteristic(GDBusProxy *proxy, const char *description)
if (!text)
text = uuid;
- rl_printf("%s%s%sCharacteristic\n\t%s\n\t%s\n",
+ rl_printf("%s%s%sCharacteristic\n\t%s\n\t%s\n\t%s\n",
description ? "[" : "",
description ? : "",
description ? "] " : "",
g_dbus_proxy_get_path(proxy),
- text);
+ uuid,
+ text);
}
static gboolean characteristic_is_child(GDBusProxy *characteristic)
@@ -186,12 +188,13 @@ static void print_descriptor(GDBusProxy *proxy, const char *description)
if (!text)
text = uuid;
- rl_printf("%s%s%sDescriptor\n\t%s\n\t%s\n",
+ rl_printf("%s%s%sDescriptor\n\t%s\n\t%s\n\t%s\n",
description ? "[" : "",
description ? : "",
description ? "] " : "",
g_dbus_proxy_get_path(proxy),
- text);
+ uuid,
+ text);
}
static gboolean descriptor_is_child(GDBusProxy *characteristic)
--
2.5.5
next prev parent reply other threads:[~2016-08-29 9:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-29 9:14 [PATCH BlueZ] Include UUID in output Per Thomas Jahr
2016-08-29 9:14 ` Per Thomas Jahr [this message]
2016-08-29 9:31 ` [PATCH BlueZ] client: Include UUID when listing attributes Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1472462089-22900-2-git-send-email-perja@extern.uio.no \
--to=perja@extern.uio.no \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).