diff options
author | Sebastian Chlad <sebastianx.chlad@intel.com> | 2014-01-20 13:18:18 +0200 |
---|---|---|
committer | Sebastian Chlad <sebastian.chlad@tieto.com> | 2014-05-27 12:25:15 +0200 |
commit | b68d38f53268b604e30437971b553a9c6ec952a4 (patch) | |
tree | eed62a9f2fde851d7595a719893e64c99ff50346 | |
parent | f1b543d6e08ce89f1aebba6b63f962976013517c (diff) | |
download | bluez-b68d38f53268b604e30437971b553a9c6ec952a4.tar.gz bluez-b68d38f53268b604e30437971b553a9c6ec952a4.tar.bz2 bluez-b68d38f53268b604e30437971b553a9c6ec952a4.zip |
bluetooth player: check CT for searchable value
Temporary patch as this should be upstreamed. Simple check for searchable
value of the CT side (AVRCP profile)
Change-Id: Ida1ce01cec3c97e46cc7e6817a70b7fce5f6c3d6
Signed-off-by: Sebastian Chlad <sebastianx.chlad@intel.com>
-rw-r--r-- | tools/bluetooth-player.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/bluetooth-player.c b/tools/bluetooth-player.c index f090e1b1..564d5eac 100644 --- a/tools/bluetooth-player.c +++ b/tools/bluetooth-player.c @@ -928,6 +928,7 @@ static void cmd_search(int argc, char *argv[]) { GDBusProxy *proxy; char *string; + DBusMessageIter iter; if (argc < 2) { rl_printf("Missing string argument\n"); @@ -943,6 +944,11 @@ static void cmd_search(int argc, char *argv[]) return; } + if (g_dbus_proxy_get_property(proxy, "Searchable", &iter) == FALSE) { + rl_printf("Search not supported on the client side\n"); + return; + } + string = g_strdup(argv[1]); if (g_dbus_proxy_method_call(proxy, "Search", search_setup, |