From patchwork Mon Dec 12 13:32:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Crepin-Leblond X-Patchwork-Id: 633655 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0664EC00145 for ; Mon, 12 Dec 2022 13:32:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232123AbiLLNcr (ORCPT ); Mon, 12 Dec 2022 08:32:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231629AbiLLNco (ORCPT ); Mon, 12 Dec 2022 08:32:44 -0500 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2E3DF70 for ; Mon, 12 Dec 2022 05:32:40 -0800 (PST) Received: (Authenticated sender: arthur@marmottus.net) by mail.gandi.net (Postfix) with ESMTPSA id 80A36100008; Mon, 12 Dec 2022 13:32:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marmottus.net; s=gm1; t=1670851959; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2RY7cTrhQEgwdw5WQfvViwhomUucV8XI0mr8amJIJlo=; b=hFJ/EMzXAkvMgpyoP/AWq/cYRXfHBdmCW7QY/HfZ2NMPI2RgIV3l2ui1F2fF2wC6kvGDNr 9/rbT4kQ1gKfYsMp/KqfTtCMYSI0qVx+U/JLlmyKIkhCSobdxt8sgROq5fid0AOuvUVD3E r395DLwcujhhyOSQ9RRJP+A9EYEr0c0WyO1lkvMWgU5/aod48nNLGTT3qfMqFBrbr7B1A5 I2DBLkLKUvmvM1iadFqMaHFj2ABkknUSQ8OUyqZCfxI0r3ooMPindfAhxV5WJMSf1ULJy1 K0kIQDplIfnp2cioop83Q9p1QAnjwoFoOU/Zu/EeN7Ed64dSDoQPX6iH4WEktQ== From: Arthur Crepin-Leblond To: linux-bluetooth@vger.kernel.org Cc: Arthur Crepin-Leblond Subject: [PATCH BlueZ 0/1] Expose the disconnect reason over D-Bus Date: Mon, 12 Dec 2022 14:32:34 +0100 Message-Id: <20221212133235.79657-1-arthur@marmottus.net> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hello, I am trying to expose the device disconnect reason over D-Bus and the most elegant way I found was to subscribe to the adapter notify callback that gives the reason as an argument. Arthur Crepin-Leblond (1): device: Expose the disconnect reason over D-Bus src/device.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)