diff options
author | Sebastian Chlad <sebastianx.chlad@intel.com> | 2014-01-20 13:18:18 +0200 |
---|---|---|
committer | Sebastian Chlad <sebastianx.chlad@intel.com> | 2014-01-20 14:37:06 +0200 |
commit | 357e755f220235fb02f267a9f9b5377338ec6e85 (patch) | |
tree | 5c18805ee3cead4f6d312426d0e38f8195c1bd97 | |
parent | f166571d2b32682c29a04995075b633ae57b8edb (diff) | |
download | bluez-357e755f220235fb02f267a9f9b5377338ec6e85.tar.gz bluez-357e755f220235fb02f267a9f9b5377338ec6e85.tar.bz2 bluez-357e755f220235fb02f267a9f9b5377338ec6e85.zip |
bluetooth player: check CT for searchable valuesubmit/tizen/20140212.173310submit/tizen/20140121.053359submit/tizen/20140121.051444accepted/tizen/ivi/20140212.184814accepted/tizen/generic/20140212.175452
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 83fb4189..5c6166fb 100644 --- a/tools/bluetooth-player.c +++ b/tools/bluetooth-player.c @@ -923,6 +923,7 @@ static void cmd_search(int argc, char *argv[]) { GDBusProxy *proxy; char *string; + DBusMessageIter iter; if (argc < 2) { rl_printf("Missing string argument\n"); @@ -938,6 +939,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, |