Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6892366rwb; Mon, 12 Dec 2022 07:38:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf7vs9QHBmACuH43lgPt+SvoJHL1zov+PUUe3tfRAOvp7ppf2SymDPDyW8AuwVDJ/APLHEgU X-Received: by 2002:a17:906:f1cb:b0:7c1:2529:b25e with SMTP id gx11-20020a170906f1cb00b007c12529b25emr15120051ejb.43.1670859481196; Mon, 12 Dec 2022 07:38:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670859481; cv=none; d=google.com; s=arc-20160816; b=PygOErsYbu0Q/dEv1cQU1OjDFWMI9B0pOdSiASdHZLiGUcTJuk2Cvp0X1tDxQzrA7z h3dml/iWZmJkpJJQdxqDglqahFu6haFRgsBXU9LLNbz2VXt/4grNNzX63B3iYtRWeMmm Eb+VGvuAfRQKG0ji43o7D31ZvFW86QWn4o7oOLqso5ovYZe6XX48fYhbT++cE6Qv5u+K ZOEFowRZ4iWDjcApV9g7FlygPqNMu8vTCgrk7m/GblzDqHQah2e6NJPUCNgljNfKeXlF E9u5GsZccrBe+4Z0ocSi8BD/cefEsC68XynYU/WOteAeJGL7sU+nfkmzNSnd97NGkj2l NBaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:user-agent:subject :message-id:mime-version:to:cc:date:in-reply-to:from:dkim-signature; bh=EG34TET7/h55ECfPUlV2gPgr7iQGT/vWNiKrYRt4UZE=; b=ZeoP2EosFSYY8YQ5B+wKOZD/hKtDLP+WevLbCLgn9qqOwMpjrFaw51DLT9oVAOwBbs Wyof94A9FhtD17VmHyu3gpcz/a5kkc5XmnFPL78j7oXGbt7KNTNhBKvD7pY+NqOZmk+Y oZ7wc0UPYVFERhaCVSi93bliCEqV32niHih2HhkYIy26lk8AfUy7S3lR2hpZnGTw6xox 0B3m0SI35wsf84gnPd9ljlbsYtzNLHEzyVRVra9/piNTP9zJNkCcAc/GU10BlnMizNrp wvp5R0c3HZE+67DU4RV3gXA5VHcWixtfCd4tlPj5pZ8DDAEwTlCd70OL7WSjrdSwyR8v aGUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marmottus.net header.s=gm1 header.b=ZhjN8mUc; 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=NONE dis=NONE) header.from=marmottus.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q26-20020a50aa9a000000b00461c8f80e34si6879582edc.53.2022.12.12.07.37.33; Mon, 12 Dec 2022 07:38:01 -0800 (PST) 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=@marmottus.net header.s=gm1 header.b=ZhjN8mUc; 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=NONE dis=NONE) header.from=marmottus.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229607AbiLLPgr (ORCPT + 99 others); Mon, 12 Dec 2022 10:36:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbiLLPgp (ORCPT ); Mon, 12 Dec 2022 10:36:45 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69F696460 for ; Mon, 12 Dec 2022 07:36:44 -0800 (PST) Received: (Authenticated sender: arthur@marmottus.net) by mail.gandi.net (Postfix) with ESMTPSA id 9D6F724000B; Mon, 12 Dec 2022 15:36:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marmottus.net; s=gm1; t=1670859403; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=EG34TET7/h55ECfPUlV2gPgr7iQGT/vWNiKrYRt4UZE=; b=ZhjN8mUcpJN5UhagDd6HOIEQrjwdx6QDiL/D6WmiR5gCzViH8SpNMOgd93K9AbrSqXwoEc FOwgZ84BFwfKvqFB64kPEFT8KrlSfLNgDnyQtFJCN/mMP7vomBgWVJlxfLLqJtwGjMyf3y BLWzQwVpxktMEqNQpjPL5ExvtK4d7zdy1q+MRfIj9iui2h5FUz07V7f2njrUBnSm94bw01 +uZAXj+fiGWAT+RE5r8uJXgNQeSfcAT+5cMGXtPh3hPkNUFn8y7xRkXhjJmu1rP8cCG289 adLqVBtIN2g500jOo7XTQuZ+XZrZNQdq3ZdlN9Y3CCridLTfVLYma5kwODVvwQ== From: "Arthur Crepin-Leblond" In-Reply-To: <988dc1f9add28a70ba18ce2f3042aac0bea04b5b.camel@hadess.net> Content-Type: text/plain; charset="utf-8" X-Forward: 127.0.0.1 Date: Mon, 12 Dec 2022 16:36:42 +0100 Cc: linux-bluetooth@vger.kernel.org To: "Bastien Nocera" MIME-Version: 1.0 Message-ID: <7dc4-63974a80-14d-24592140@246924754> Subject: =?utf-8?q?Re=3A?= [PATCH BlueZ 0/1] Expose the disconnect reason over D-Bus User-Agent: SOGoMail 5.5.0 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS 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 On Monday, December 12, 2022 15:49 CET, Bastien Nocera wrote: > On Mon, 2022-12-12 at 14:32 +0100, Arthur Crepin-Leblond wrote: > > Hello, > > > > I am trying to expose the device disconnect reason over D-Bus and t= he > > most elegant way I found was to subscribe to the adapter notify > > callback that gives the reason as an argument. > > Any reason why this can't be a signal with the reason as an argument?= I chose the easy path by copying the existing code for the device prope= rties that get updated like the "Connected" or "ServicesResolved". I am not too familiar with BlueZ signals other than PropertiesChanged, = InterfacesRemoved/Added. What would you have in mind? And apologies in advance, it's my first time submitting here, I do not = have an advanced knowledge of the BlueZ internals.