Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6868344rwb; Mon, 12 Dec 2022 07:21:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf4DRWpjhFTJOkr3rTiVqbdE+LUUdK30CRqpgDQ1eG+NaUk6/OBSxPY9q+yVD4r1dM6H1Pmr X-Received: by 2002:a05:6a00:1388:b0:577:1c59:a96c with SMTP id t8-20020a056a00138800b005771c59a96cmr21694953pfg.2.1670858512329; Mon, 12 Dec 2022 07:21:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670858512; cv=none; d=google.com; s=arc-20160816; b=Bnioed429NqV6i4qhx3ged+LeheESlQ9yyZQztiTlquxa98Rs3OxnwR4H4V3ZHaQuT djwQ5Cvgk8eNSk7aIOgvd0zFggzJdCx6nD9r5iLeH6HoVimS8iPqR/Kxh7YEFk0sBgWK M5L2EA26VROdEF8clwZFOorlJO3UfLtj/x7m6alPQ8+EeYBQWs/nC9vKixoLYZ7GOhAm bbVpmyatBzR+0IoZU9ELqJ9QoqZBfgqk7EaT+sMfchIKp8DOImDxBvUKh4yyLEmFyx/u gvxegtkxQp+Usgv9Hif8UZaCru95pn7fN7eIAlmAzSsHeiHYcKc2ARxR+gx6X4oZ57P2 DrjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id; bh=7tgivxvmFGbiKapV+0v7RGAc0J6+2UoCNZgJbPK305A=; b=aCdRpwBGr8w/XggbpMqgT9qk8WhZ6xKdlm45IMp3nQYI/qf3pC03teFXFIL+YSt424 ybkaimd6gNOlap112Byrzcekf2/FJ0YFJ4rLkpcsEtYhnq7f5ys8nxsst3CZnDDuCBj+ 0LhuP1MfneckRPwqTuulr51dkNXFNePTCf9/4UDTrtGUl9Rzoq0395QYIAhL+YBnGLF+ S8S23IKdpvC8oSgbht7x2hJ9xi/2mHAa8kM2h+XW8635Ihm+me2Jemno3Jt3+Vf5XE9v 6e5w7wiGYRsCwvpl90zoBvnaU1I1EBFIstAP9rtxo1+1NXieDdT8XMvdBrMYSz1VHFvD Qjig== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i62-20020a639d41000000b004774e9ef1casi9607424pgd.728.2022.12.12.07.21.30; Mon, 12 Dec 2022 07:21:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232078AbiLLOtd convert rfc822-to-8bit (ORCPT + 99 others); Mon, 12 Dec 2022 09:49:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231892AbiLLOtd (ORCPT ); Mon, 12 Dec 2022 09:49:33 -0500 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A8EE13D00 for ; Mon, 12 Dec 2022 06:49:27 -0800 (PST) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 4053320003; Mon, 12 Dec 2022 14:49:25 +0000 (UTC) Message-ID: <988dc1f9add28a70ba18ce2f3042aac0bea04b5b.camel@hadess.net> Subject: Re: [PATCH BlueZ 0/1] Expose the disconnect reason over D-Bus From: Bastien Nocera To: Arthur Crepin-Leblond , linux-bluetooth@vger.kernel.org Date: Mon, 12 Dec 2022 15:49:25 +0100 In-Reply-To: <20221212133235.79657-1-arthur@marmottus.net> References: <20221212133235.79657-1-arthur@marmottus.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.46.2 (3.46.2-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 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 the > 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?