Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3454659pxb; Tue, 19 Apr 2022 02:59:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLjj7jg3jSw6yusgLsSyUxMLQhzWnpVxhXKo2xSnQ/rwJ2ABD9GrFqhSJ5FcE5qdb6gwnR X-Received: by 2002:a63:cc0b:0:b0:3a4:90c:ded4 with SMTP id x11-20020a63cc0b000000b003a4090cded4mr13581040pgf.260.1650362399274; Tue, 19 Apr 2022 02:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650362399; cv=none; d=google.com; s=arc-20160816; b=nm4EXmtb6B5A5/dEYpqz28G66JRoqI4i/XfVwKIkqmjEHWgQfdLBRMIGh4LM4htAce 7GUwsSXbEgfKMAUTT1s/xF8HeuFAwtG6dBgsralxvxd2I4RqfuI3i+Sj6aUHTnyvtDot +uNALFX3Dubqo6jjfiVlHEgpACBFsHFRhXDLl+pO5CYqWDDA/eRYRl20jAxNuvBeC7gn LQ3BFc/mYSU3GL6h6f1vromYWF5V32lqxGcFKmJ13BYwl9alHeczFYN0k9MeorB4K36M XxNiCM8LsfAwh6LcNSpEJrAE6FyLxx9i5vESSEoALXEuF3jDGzu0hNmGKn5y9LWiWWQ0 w4VQ== 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=fmwGAZcMMoLjRQmyKmKefv+VzaTEZbmfWgfUw9A8RyM=; b=o8a/imphHzgmYhngNAp0XiP3dZT1S5xwZCO327gsKIByv3rQpnRF60LthfKo9q3lkE n31JBfDMxr/4XAXQjy7b1UpNty/H/rEKPxFN+oLB7kJrNQ6oVrFkXb3OZ8w9Rl3g0fuB THkD3ofMB9WFxSPgU/bAkVawgrh4nOXlu1g2qkMvpes0A1/ecZlRNFUN1nG8poMMKA0c xn4h0rtncCnN8n6lKJolCNGBt8Csl8PMQ09m3DmxHqIf+JkEUMIg9DsLOqBzCOLHMg3C uE0YYXvmfDDjMjvvOsJ0Kt/2AMoniV7mJ8hrb8+u2PUqTGKB1cg+gmRJ+D6wEVehH34c NuUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=QbiM2647; 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 y11-20020a1709029b8b00b001587868e960si11096249plp.526.2022.04.19.02.59.36; Tue, 19 Apr 2022 02:59:59 -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=QbiM2647; 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 S230186AbiDRRwP (ORCPT + 99 others); Mon, 18 Apr 2022 13:52:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbiDRRwO (ORCPT ); Mon, 18 Apr 2022 13:52:14 -0400 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C698D344CA for ; Mon, 18 Apr 2022 10:49:34 -0700 (PDT) Received: by mail-pg1-x54a.google.com with SMTP id c194-20020a6335cb000000b0039d9a489d44so9408602pga.6 for ; Mon, 18 Apr 2022 10:49:34 -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=fmwGAZcMMoLjRQmyKmKefv+VzaTEZbmfWgfUw9A8RyM=; b=QbiM2647quIc5ijnGpLEpBFhYU2I85ipThKF12iXZ02GSkixj01jXgkaLjqrEGxAPb mVPOi3MI476fQVu0KUFikD8/W6/lrO6uN579nvdJX+I/plEFr4MbI4xKn3BBfqHwOtwj dMXbbop5yLKxYVl5r6gfHkQ6nrT/GU586Taa/BKCfQak1kLdMM3f6frRZCzQoUtl5kPg t3buqnZTy1XOz39mf9pvEuLWd51TNI5rGtaEsKe8KUB7WNHaCvUn6Smu0e7nvb4+eo84 mYmJAQRTlnsg9PhpfVJmVNiUz/iNBgpBI0xLaPUE4YPaANjSi7tx1FSddrJCOl1vQQw+ vBww== 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=fmwGAZcMMoLjRQmyKmKefv+VzaTEZbmfWgfUw9A8RyM=; b=7QSILF852Fou9sJnIiGXLNwh9agovwaE4dRAp/gEjFG1Wdl3urLyKSk7SQFiSy29Sc KMFmVccx9Emac0LFkXJuEo7BKDRTCizrF7gUgX6tMMZ1/MSJOzz6JBqMW6ft7s4cr+Dw EkWbLsSW/K+RPgjwyoytrb1pIwqpaPuyXFJ9F8cCar7mYV8hVKR+LDA7v0tu3nLK5umr 7Fx+hubFbF4vksUS5XkehMIBfRtdLu3Tyl4VmEDjl6tFRB5Sj8LfHaZe0sOobtKMCG+3 01XAV+NZm7u3KOHLz7o7oziMddkRlj8zISQMGa0ecqJh84fMcX1HQckfKozlMEEO6KSX htTg== X-Gm-Message-State: AOAM532Lmi2NmB/u/J+pEyvXhkispxFDxUkYB3PAq5drSabiAuknla9f oenceb78G2afD5Ml9jKf6gBAvHk1k2gtxOE3RSgDFdZY9HJkBcY6zd8VcYFtyaZ0x1wp0fQLK5Z ddBXTroSnqkg2EhGtZ0S1PZZOOb8cEK8YaYDtnz1ZEu73OIwbXUUWsvBTwtnDlnxoD23+rlfjSm l1 X-Received: from jiangzp-glinux-dev.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:4c52]) (user=jiangzp job=sendgmr) by 2002:a63:e209:0:b0:3a9:fd41:dc17 with SMTP id q9-20020a63e209000000b003a9fd41dc17mr4695072pgh.94.1650304174166; Mon, 18 Apr 2022 10:49:34 -0700 (PDT) Date: Mon, 18 Apr 2022 17:49:27 +0000 Message-Id: <20220418174929.2777339-1-jiangzp@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.36.0.rc0.470.gd361397f0d-goog Subject: [Bluez PATCH v2 0/2] 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 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 (2): device: Add "Bonded" flag to dbus property client: Add bonded-devices and show Bonded flag in info client/main.c | 29 +++++++++++++++++++++++++++++ doc/device-api.txt | 4 ++++ src/device.c | 40 +++++++++++++++++++++++++++++++++++----- 3 files changed, 68 insertions(+), 5 deletions(-) -- 2.36.0.rc0.470.gd361397f0d-goog