Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1620777iob; Thu, 5 May 2022 05:19:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHKq8GY47XARQL5Li+0vYao5CIMhAweRvGfoltWAfGTwV3l7Pb5qHnbf2ZN4qtmS3/W4CH X-Received: by 2002:a17:90b:4b0d:b0:1dc:3d21:72c1 with SMTP id lx13-20020a17090b4b0d00b001dc3d2172c1mr5859701pjb.21.1651753163302; Thu, 05 May 2022 05:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651753163; cv=none; d=google.com; s=arc-20160816; b=Crv3HhV/fUs5OZNO0KRghnbCYnoX6jOyCqT3dhH8NBt5x1J1LOsxcgwTbRDCkNbVZC r+W8NNtiLLqAt6mldh+xTcUl/6sCzPJapZkgaDVekRJHWrO0bRaR7gBuyh5cTb4LWWZk TfKDual9Sb3gL8aNAi/8KyDNrwH1hlKpJJGqi6t/eWtz9exFeHlkM9qOszLeMjw8/rVd hrc4eyxc5RBj8wjVEBrcFOT45EB+0Oie+Ay/UtScI4TKEPNHJg3+skVFT8tkQFd4slwt /Z2EGmfs2Qk9xnvKDdBvUIxESghwKeWO+SeKBLaN4WCYa1U9rSTm/xUJIMiCaAATqXU7 Hq/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5dpjhNl6Sv2T0WhsV8Jse8ptGivXz8AoHBpG+W50tKY=; b=dT960MJP9z/+QAlc00fg+2PvJpDwyHpLCF0/NZlzWXPHh4vC7Jg07FIT768Nu4VSfZ HQNGH3u6lGyB4FN2Jb8I5YLcBiwESApB6dc/WMlV1TdumhK4c2CmzISs2ly7ByVnHB2S Kl7ypsq5FUilF+BrKf9jnOYmA8y0Kc5jn4VYIZIqHDohPzD3sMTp6KtanXffs7/5NRsc Igkf2/OesOWmN3r/JZHcx9Zj6yLzBWxgskpXHARQoHmt3n3PUKB/g1f2GR+by66ejuZa Ks3KJpt09OZlvY0fHvG63Kesi4ZWHJXL7cQMe1xh1EL42qUoXYEENK8+TiJBy603gTsJ wBfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dEcYuIHN; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j17-20020a170903029100b00155d4e81304si1850125plr.143.2022.05.05.05.19.05; Thu, 05 May 2022 05:19:23 -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=@gmail.com header.s=20210112 header.b=dEcYuIHN; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237813AbiEDWBj (ORCPT + 99 others); Wed, 4 May 2022 18:01:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352006AbiEDWBi (ORCPT ); Wed, 4 May 2022 18:01:38 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 735424CD4C for ; Wed, 4 May 2022 14:58:01 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id p6so2431809pjm.1 for ; Wed, 04 May 2022 14:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=5dpjhNl6Sv2T0WhsV8Jse8ptGivXz8AoHBpG+W50tKY=; b=dEcYuIHN+MCAsojLO2HXc7JEFh5L3yMnaiuEDjNfC+q5u2Bk98hivkBqTfk5fOBTTK YSzrxIEp8jg2m6lsRW/TZO+TsS1wD4/Baj2Gqo3hNHWZUCoj+e07csTEDp+pD+23cxcC Uaa59OIPoPEjDs1AVjztDI8f/WM8iyAzzp6ueiew0wtpNHbeieb5PmBuFUJ2hSqDFZiH vnjjBHDBCkdhc5JteM/yXcWXoD7/9pM77M2BdczWfdrla08Reg3LI34MojXUd/DZA3yV REVZtjuoYghif4Kw702KRQ/Jz4Dya0BNxPIUkiCKt9vtx1mVm72Vl5xMfx82gVHWofy5 xn9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=5dpjhNl6Sv2T0WhsV8Jse8ptGivXz8AoHBpG+W50tKY=; b=NbAwNiDVxGeVwpoRKPlpRDJhGUZ1EINOetNmYowgzuw/3snLNsFFFTg20mz4jpJC2S 34YTZvjrbYsPecxyoAzZjUWgr6jkHhB281yewEoCXyWSDEMEeM35U1r20nNZ6VcdvxzH RPjirww3gDL4iAr4V0D0NlyooItww3SjFc1E5aZGi2FratkKcqbBxZ6SaTeJE+Goiyex N71J/PnJz4CPILpPxOKlqOl7AeSwkkIKBrCzjpmIqN2foAfXiYWieiTXFJQ7H7ES9I+P fzrVMOBYTnY/SJhV0EwFKmk2Dvknf2hmmfpA+3s+1FMjGJaZCsBGzDi6f54hAjqFoQai MJXw== X-Gm-Message-State: AOAM532wm0m3nlIV9KaY/ETAnfirONP0zcryn2+vqD6OGD0lIzA/my3Y BkHji5rCg6LRrgCDGf+YF/2MmZRPX+j8d29EOY3ErSvL X-Received: by 2002:a17:902:ecc7:b0:15e:8685:77d with SMTP id a7-20020a170902ecc700b0015e8685077dmr24499900plh.20.1651701480825; Wed, 04 May 2022 14:58:00 -0700 (PDT) MIME-Version: 1.0 References: <20220504210948.2968827-1-jiangzp@google.com> In-Reply-To: From: Luiz Augusto von Dentz Date: Wed, 4 May 2022 14:57:49 -0700 Message-ID: Subject: Re: [Bluez PATCH v3 0/3] Adding bonded flag to D-Bus property To: Zhengping Jiang Cc: "linux-bluetooth@vger.kernel.org" , ChromeOS Bluetooth Upstreaming Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Zhengping, On Wed, May 4, 2022 at 2:54 PM Zhengping Jiang wrote: > > Hi Luiz, > > Sorry for the error. It should have been fixed in patch 2. I think I upda= ted the wrong version. Don't worry, I'm fixing it myself. > Thanks, > Zhengping > > On Wed, May 4, 2022 at 2:49 PM Luiz Augusto von Dentz wrote: >> >> Hi Zhengping, >> >> On Wed, May 4, 2022 at 2:09 PM Zhengping Jiang wrot= e: >> > >> > 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 lis= t >> > - 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 >> >> src/device.c: In function =E2=80=98device_set_bonded=E2=80=99: >> src/device.c:6141:9: error: ISO C90 forbids mixed declarations and >> code [-Werror=3Ddeclaration-after-statement] >> 6141 | struct bearer_state *state =3D get_state(device, bdaddr_= type); >> | >> >> >> -- >> Luiz Augusto von Dentz --=20 Luiz Augusto von Dentz