Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1597009iob; Thu, 5 May 2022 04:54:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2uOsaVdrwDGTKOG/1aQKqDzUfphvXsdwfQNFZIPhKVan9NILu3quaqUom2YmgiKaKQy1b X-Received: by 2002:a63:a18:0:b0:3c6:12b1:a8d0 with SMTP id 24-20020a630a18000000b003c612b1a8d0mr2702871pgk.534.1651751650508; Thu, 05 May 2022 04:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651751650; cv=none; d=google.com; s=arc-20160816; b=ctLPr1fZ0Na4uAqdSZstQycDLbpJJAX/HTG4AhpIq13DEwC1ldd6dmgTvRWP9vn9o0 iOIBPxvMGjPO9m4/GIcfQMiT0y3im9rkx1AjKhHzY0/i37ODCrdy4K8h0s6XpuY68sOH mapJpF5zmIQGiOxZNC2qPwmbLj7iki4T2SaN7fXWmE5QF88CoeG0hAaKumGGhfkDHzUw FMmHObi/HfB6sfxuniCvrzIOJuKBERtcFFj5LDfDrOM/mmt+X8wY3eI+ToMvXAfH+Wxb D3ghAdfbr1VNYgML4S/KRtVaXRZIoLKh5WCVFxdLXY9yq7Nhow7Q9t/SeKaDHrsCV7Ar D7Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=oItEKj1b8hRoSj+evTl/1i3LqgkEyIfpmXzFkcTI5XE=; b=WHHqBnbZx8VxcypKIbZxXcIqLFUt+e0S7WwuCvEvPlJGGdPY5ZHoicvhcUU60gdy5X RGxHLSahsPw4o4EOn+gIAudNdO94tKetZXfG8TszzXK0DFvCq29pc0MvjwN075GPiRlN AhRb2m/G773HIV/yDW6XWXuDo66T26isahOomq3Q9Q0JZ7tQVwCtkVeRumMRVmHNJxQT w3rfjLKVdgmhyr/zLXBkDozdKOjJG6STSmt6/+5eELSujsP5lFFn202A+x16j6L/QmE/ uSsYYjIvLNez4oZW1UUj+zRsNQV+M1qKDS/E/iKMKcsbjmt5tgs+NqdLvedWZYvYWFfi n+EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=lsoJakvR; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot17-20020a17090b3b5100b001d9856c77c4si1935662pjb.15.2022.05.05.04.53.38; Thu, 05 May 2022 04:54:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=lsoJakvR; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358426AbiEDVNd (ORCPT + 99 others); Wed, 4 May 2022 17:13:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235258AbiEDVNc (ORCPT ); Wed, 4 May 2022 17:13:32 -0400 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2EB04F9CE for ; Wed, 4 May 2022 14:09:55 -0700 (PDT) Received: by mail-pg1-x549.google.com with SMTP id i188-20020a636dc5000000b003c143f97bc2so1250057pgc.11 for ; Wed, 04 May 2022 14:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=oItEKj1b8hRoSj+evTl/1i3LqgkEyIfpmXzFkcTI5XE=; b=lsoJakvRGlMU+NfxFavfHmfBE+mQbla+vv3HQcrlyAzi1ohUeDazGcv+1k/TNTUX68 IJHvNVYfLdorORjM60z0yf1WfSCDGC8iu3YtFTc3Dym4d6KUEE5fbzV78hqKUh8tObkI hSHwzAznXbRiV0TzMiVwxhxhV6DYzJPw4VeTWsxnYlTncsecKiUs0R4rPYgszSqnmPFf p0OKvG6608HtUXMcTWgF5KyDBR+yhVSYfLN9Exhc54Suxpu5LC1JFgnxaJajzkKH2MXY EseydC+2Cl9M8KrBsbQLWSJXe94QaqZjhOurdUz8F3GwIOenuCWomZXPhWXdMvTBoTE7 82TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=oItEKj1b8hRoSj+evTl/1i3LqgkEyIfpmXzFkcTI5XE=; b=DXw2hCfQqRfBoqtjonRY5Dfdmx48y7KE453p+M5n7n14LdTQeGHynjekpLuK4owv8M HEcmLdMdb7swQe6D1eWS8mr3ffSI1NIIw3+oISVuZzESpNT2d+VqW9LRN4ap4N3U8Tku V5a79xJdZX/hQ7MSIQOpDMDuajsnRarJCudjGj6szn0BRNVyD0TcViy+qJkEjzNF5Jp8 128TIqNQ2uYKlesLbOL2Xr30UscxKI+JpmI6kEkSqHQwazAEZHSmwAt8Fjhh47A5OEAU ARcp28GwhSkUjYuiTMYsMSrvjnvpU9TD3BCor5gU/0mIPA6y3cTPEe/qbzb5wRaRJjx6 cQLA== X-Gm-Message-State: AOAM531apAyHtXMs1xc67QEorz6LVx47lGu5qKlaHO+1ZxJhQ3eUT+gg W85Kw+rovlTyz1wpEiK5y20bdrS7Utu/5OXMelP5XzkxcWYyRif3zHNlMRdm+oqk5zsrGftwnh0 zgPMgAfXSoICbk86GNQCkRZq1woQ1r0eKnKReN3Vt7wnOfTulMbsiZOLeYzG6cW8RLg85tRnhtj sO X-Received: from jiangzp-glinux-dev.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:4c52]) (user=jiangzp job=sendgmr) by 2002:a17:902:c94d:b0:15e:ba3e:c4d3 with SMTP id i13-20020a170902c94d00b0015eba3ec4d3mr8852281pla.121.1651698595247; Wed, 04 May 2022 14:09:55 -0700 (PDT) Date: Wed, 4 May 2022 14:09:45 -0700 Message-Id: <20220504210948.2968827-1-jiangzp@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.36.0.464.gb9c8b46e94-goog Subject: [Bluez PATCH v3 0/3] Adding bonded flag to D-Bus property From: Zhengping Jiang To: linux-bluetooth@vger.kernel.org, luiz.dentz@gmail.com Cc: chromeos-bluetooth-upstreaming@chromium.org, Zhengping Jiang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Currently BlueZ client can't know easily whether a device is bonded or not. This is causing issues for a number of applications. For example, in the Nearby Share case, the peer device is paired, but not bonded. This series will add the "Bonded" property in org.bluez.Device1 D-Bus interface. Changes are also made in bluetoothctl to show the status of the bonded flag as well as a list of bonded devices. Changes in v3: - Move documentation update to a separate patch - Add description to bonded and paired - Add an optional argument to the devices command to filter device list - Remove paired-devices command Changes in v2: - Move one variable declaration to the top following C90 standard Changes in v1: - Add "Bonded" to D-Bus interface - Send property changed signal if the bonded flag is changed - Show the status of the "Bonded" flag in bluetoothctl - Add option to show list of bonded devices Zhengping Jiang (3): device: Add "Bonded" flag to dbus property doc: add "Bonded" flag to dbus property client: Add filter to devices and show Bonded in info client/main.c | 72 ++++++++++++++++++++++++++++++---------------- doc/device-api.txt | 12 +++++++- src/device.c | 38 ++++++++++++++++++++---- 3 files changed, 91 insertions(+), 31 deletions(-) -- 2.36.0.464.gb9c8b46e94-goog