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>
{
GDBusProxy *proxy;
char *string;
+ DBusMessageIter iter;
if (argc < 2) {
rl_printf("Missing string argument\n");
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,