Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp649556ybt; Mon, 6 Jul 2020 19:20:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw02RLEuSCzl8W1q5oFUpUJzPzBtpLY2A6LtaPrYOYu8lx/h6Ky+uDwlzYVpqNhaEWV5qVO X-Received: by 2002:a17:906:9408:: with SMTP id q8mr44546531ejx.496.1594088411074; Mon, 06 Jul 2020 19:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594088411; cv=none; d=google.com; s=arc-20160816; b=tjZ5emu1YAmbW6W3n8CrL79RLKVMPWSCShRXK9of1iQn0rJ3q3yUys12W4aO99+3sq 1AXuNYLWT5zP3kXhrUkSisO2RhRxXrCgTVtPxg3Mu23wdogR3zCZNk5Q0ZgoUokPGTg5 nQvbvQKU1pJR3Cp5mbtVJdyzzqmhhMUgEzllOlNVHYuiRVsGGacF0jCFpHzeNoUXqEaj vC5+/6KyRJrSORQCViRTQ32INlMOv1TW3FqIPonIz0Eili3bIy++qX0kDORflpy4aycf aHv+KRoTU9KEoxIkNEUF6ChzMwrYzhec9Q/dmlWVn9ngyyeKEhy2EXI13En1jyutr1Fb MfZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=COXbuCTb1uxtXUkclqvogDk3kuYU7hDA74gntG4a48g=; b=b1r1Byn2mN+MGwupdSkCMTb5bNRePxmmagIhB+KKwWvrEZXx9zBv92s6oFwxZD3fN3 F/BvsExoNEC/XuCH1XPz5gPGbIW6bql8YNZFVU4a9YoKFJXvK98DKTz+EdeEbha4Y3Cn +cUJ48Hr6MhKCKwuS6rsdvtuOczroplLft3dR4xEIWB4rims05emw2vzTiFUxqGiNnf6 nJ+GGDlUzMUa1+0TuO8x7HAB5niUM5SLAePZBny5T7F+8ffU5h1NToQVYE23xl9DCIAU sNm0OFRpGTn90f7esEoraY35uRhvpTVYQq25uHSeeWQF7MTj1dTYX/vzFzAUYtkxRoQT h/mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hxDzQktX; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si14337912ejq.719.2020.07.06.19.19.44; Mon, 06 Jul 2020 19:20:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hxDzQktX; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726900AbgGGCTl (ORCPT + 99 others); Mon, 6 Jul 2020 22:19:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726583AbgGGCTl (ORCPT ); Mon, 6 Jul 2020 22:19:41 -0400 Received: from mail-vk1-xa43.google.com (mail-vk1-xa43.google.com [IPv6:2607:f8b0:4864:20::a43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52151C061755 for ; Mon, 6 Jul 2020 19:19:41 -0700 (PDT) Received: by mail-vk1-xa43.google.com with SMTP id e10so2243603vkm.10 for ; Mon, 06 Jul 2020 19:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=COXbuCTb1uxtXUkclqvogDk3kuYU7hDA74gntG4a48g=; b=hxDzQktX3lf+qlZOLr/v+bqWr4EKqomcnjjwKbDmIlDY5DwnfioKFxyGUsLEkNn47I jAOaYZYW5rFeey26CTOQ/aYJkZ0DrfI39US3Hpw0v/pOM6JZK669ki9tTYbrYt+0tl6n FXdrCcLb6Cw1ec8jtXHGmP/hdEUSSGU9whtpU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=COXbuCTb1uxtXUkclqvogDk3kuYU7hDA74gntG4a48g=; b=EGvYFYYbco7E9+8yBXrcdqKnkgk5FEFjFcHZnv/Y0M7YLsngRaV2gyX0szp+hD0YOH OteYwb1R4/rdRNC5/Mh/6euMq3HFh220fxkf6M23PxsMKO2RpeCgMGoQgep4azYw0vHI 31Y8xQdBQ7uCEZa/xVMH30jlO4I4pOb7fkGw4lfyAwUfW98V9RdyXbkCmfgiWRK5dk+V /9KP0cid6T8J/b0+Z8PdBop4GWD47G4PbAtg9iRYZDjIjPaiTIFQVb909JiPhxkdNjpl vbrP2IG+QO8R34roj3c62QrwZur2W9D2BRyxSVEWtuBxxJF8mDTzSH4S6+8O/8AhsaxL dl2Q== X-Gm-Message-State: AOAM5334WDM5p7ekfguYD2TXGaBqEFUuc54rIeqereI0t+UkI4KuxYBy tOYT6WWhDhYyaRK7zS5d5KzsjEUZy5g= X-Received: by 2002:ac5:c183:: with SMTP id z3mr19464427vkb.74.1594088380245; Mon, 06 Jul 2020 19:19:40 -0700 (PDT) Received: from alain.c.googlers.com.com (252.177.243.35.bc.googleusercontent.com. [35.243.177.252]) by smtp.gmail.com with ESMTPSA id q200sm4855727vke.53.2020.07.06.19.19.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 19:19:39 -0700 (PDT) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud Subject: [BlueZ PATCH 2/2] client: Add support for the Roles property. Date: Tue, 7 Jul 2020 02:19:20 +0000 Message-Id: <20200707021920.209213-2-alainm@chromium.org> X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog In-Reply-To: <20200707021920.209213-1-alainm@chromium.org> References: <20200707021920.209213-1-alainm@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This adds support for reading the Roles property through bluetootctl's show option. [bluetooth]# show ... Roles: central Roles: peripheral Roles: central-peripheral --- client/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/main.c b/client/main.c index c0b351aed..8af7c4e0f 100644 --- a/client/main.c +++ b/client/main.c @@ -925,6 +925,7 @@ static void cmd_show(int argc, char *argv[]) print_uuids(adapter->proxy); print_property(adapter->proxy, "Modalias"); print_property(adapter->proxy, "Discovering"); + print_property(adapter->proxy, "Roles"); if (adapter->ad_proxy) { bt_shell_printf("Advertising Features:\n"); -- 2.27.0.212.ge8ba1cc988-goog