Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6707406rwb; Mon, 12 Dec 2022 05:34:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf6voVTbjIA5Cw+KWiz4KISoo+yk9abytl4u7D8B8xh3d+KHnNNRmcCxqahDHFZb3R2Pjdio X-Received: by 2002:a17:902:7243:b0:18c:cde:fddb with SMTP id c3-20020a170902724300b0018c0cdefddbmr17041619pll.65.1670852072517; Mon, 12 Dec 2022 05:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670852072; cv=none; d=google.com; s=arc-20160816; b=AFQKaUG8YSr7GF5OHkJ6Yz48qh56EGfBJ33hKJi32nYiCLvreBFX0E8KAQShS4hPvg AY2ibEgM/ZKjr3VMOBhQmJmyp4KgM4hHLPLkBsjq7TNHGH6555MrBTRuUmJJt3FOt+gU iKRlkp7sN6+USLab8OxdfZ+7yiS6n+vIQklZLYZBJoRTsGVhx67q7Us65PEKD0GESf3n hIr9ycj5Kf1iOdQvTxxoHckWi5z9lmAxzUlxBAjzessPsIyhjaV/o532NKmV4byDkX1P CpwWx/Ic8mmxDJbXvTKDwmmaME8Cez3XNlBnvqgQavK+JTeZRTJan5lnzzEB3FnVv7IQ exww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2RY7cTrhQEgwdw5WQfvViwhomUucV8XI0mr8amJIJlo=; b=TYqnE9gdKOunMqmZmFXNMxJOJDLDKlQbBXI5bJhqvfv18qC7O6ds7u2Fn1iiqAZs7c tobpgH/qd/ZWFSXrd8xCKk8st68eBrJQy5nGkst5/7q56MWpJZHX90P0aiLdio+r2rwP am2pq32/g9hXuY56qynmplDfUGxxHynHScBIiQOOJEa9kO1QR5GQ9hVIYKuGnwd/vJyV ziIVqnDhvMVwbT45DeDMdLsF4YGDkwx/kTVT7sTiaudrlOQGMC85sGl2J+VWmvldi9ev hiA0MQpnQmemFY2EPPzypO3fVLuaenqr09ZcFcctNXW8+xH7IZNYVA8sSBJ0ZqkuMJdj Fm0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marmottus.net header.s=gm1 header.b="hFJ/EMzX"; 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 m123-20020a632681000000b00478ba6cb230si9255321pgm.131.2022.12.12.05.34.13; Mon, 12 Dec 2022 05:34:32 -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="hFJ/EMzX"; 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 S229923AbiLLNcp (ORCPT + 99 others); Mon, 12 Dec 2022 08:32:45 -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 Content-Transfer-Encoding: 8bit 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_H2,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 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(+) -- 2.38.1