Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2271305ybl; Thu, 29 Aug 2019 06:07:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqydA7ktDSCi1dKOXrswpU7a3w/GPzEQAET3XTNAWUu0jqh8KLgKFfgT60ogDU1HruvYSyr5 X-Received: by 2002:a65:64c6:: with SMTP id t6mr8428380pgv.323.1567084044207; Thu, 29 Aug 2019 06:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567084044; cv=none; d=google.com; s=arc-20160816; b=aPxMYJioSeFnpOeVmd08hdiLl6HOmeluJlFyRW/t2rLxcbYrt5kSlIZ07gCXeLkZs/ qEZYP82zXOF/QEiwnjKKG/9ghI0oHzWFIRdQBchXSjSNAti9htBfzp7FManEoYqp37YD jdqpIHsuG9Rr6AqIJWavEbahqdrdC8euMxiMorwvAwv6PPtgz4KxgIGH6wDw6UZc+zGI EDiZhM5tkZ2cMXToyR5xHZ9CpWxZA4xXlCAiQiLRModt88PN4g+6drjgpF5FsERTew2p HSlAfs/tNYDL+okQEpMniRa5uml8gakBhMyi3/rFj6yCxyw2splXdqte180UMdt7u4BI 3+sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=asGG9NGqXMsFEdEO1oz0JzZws2C1HODKJ2pfQXzzp/o=; b=KqcqxVOdUs9wH6xC0vFL2ituggwHAmW3zBuOR6E9H0iI5v4MXeibdYWBR+JfEPV/Fo eMfaM2wyVWrU43R7PguXgIBUl8/LpYg+c/E80uuEagneQWVt5P/lyGbmeNbbGTApy3BG P+sueR9HSzjLE0lgu75vAnRnv04ijSfRa0xtgyl8lzQlrA/iuOa90Y4KmFf0hMvcze2S Jio70cdQQCDocPMKTVckKFumfk162gcnaU+MuXzdLa3+J7bgkDDvRi4oBqcQNHgZMfVk /V+LBuwZPLnsNM3FAYxctBsDQA1e2RnT7qUeDsePqNXWBH6QQEvl7AdZ4zxPoHxwgHnj wfpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16si2014261pgs.228.2019.08.29.06.06.48; Thu, 29 Aug 2019 06:07:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726739AbfH2NGR (ORCPT + 99 others); Thu, 29 Aug 2019 09:06:17 -0400 Received: from emh07.mail.saunalahti.fi ([62.142.5.117]:50002 "EHLO emh07.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbfH2NGP (ORCPT ); Thu, 29 Aug 2019 09:06:15 -0400 X-Greylist: delayed 516 seconds by postgrey-1.27 at vger.kernel.org; Thu, 29 Aug 2019 09:06:12 EDT Received: from ydin.reaktio.net (reaktio.net [85.76.255.15]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id E9045B001C; Thu, 29 Aug 2019 15:57:34 +0300 (EEST) Received: by ydin.reaktio.net (Postfix, from userid 1001) id E622D36C0F6; Thu, 29 Aug 2019 15:57:34 +0300 (EEST) Date: Thu, 29 Aug 2019 15:57:34 +0300 From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= To: Luiz Augusto von Dentz Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ 1/4] doc/media-api: Add RegisterApplication method Message-ID: <20190829125734.GH2840@reaktio.net> References: <20190712151329.11333-1-luiz.dentz@gmail.com> <20190718100024.ii2igadxb2lmmitm@pali> <20190721155522.3vqt7vsprhpxflqf@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, On Sat, Aug 10, 2019 at 09:54:52AM +0300, Luiz Augusto von Dentz wrote: > Hi, > > On Sun, Jul 21, 2019 at 6:55 PM Pali Roh?r wrote: > > > > On Thursday 18 July 2019 12:00:24 Pali Roh?r wrote: > > > On Saturday 13 July 2019 17:52:46 Luiz Augusto von Dentz wrote: > > > > Hi Pali, > > > > > > > > On Fri, Jul 12, 2019 at 6:13 PM Luiz Augusto von Dentz > > > > wrote: > > > > > > > > > > From: Luiz Augusto von Dentz > > > > > > > > > > This uses application ObjectManager to discover the MediaEndpoint and > > > > > MediaPlayer object of an application and deprecates the use of > > > > > RegisterEndpoint and RegisterPlayer. > > > > > --- > > > > > doc/media-api.txt | 20 ++++++++++++++++++++ > > > > > 1 file changed, 20 insertions(+) > > > > > > > > > > diff --git a/doc/media-api.txt b/doc/media-api.txt > > > > > index bca8c9563..07f7ac3e0 100644 > > > > > --- a/doc/media-api.txt > > > > > +++ b/doc/media-api.txt > > > > > @@ -66,7 +66,27 @@ Methods void RegisterEndpoint(object endpoint, dict properties) > > > > > > > > > > Unregister sender media player. > > > > > > > > > > + void RegisterApplication(object root, dict options) > > > > > > > > > > + Register endpoints an player objects within root > > > > > + object which must implement ObjectManager. > > > > > + > > > > > + The application object path together with the D-Bus > > > > > + system bus connection ID define the identification of > > > > > + the application. > > > > > + > > > > > + Possible errors: org.bluez.Error.InvalidArguments > > > > > + org.bluez.Error.AlreadyExists > > > > > + > > > > > + void UnregisterApplication(object application) > > > > > + > > > > > + This unregisters the services that has been > > > > > + previously registered. The object path parameter > > > > > + must match the same value that has been used > > > > > + on registration. > > > > > + > > > > > + Possible errors: org.bluez.Error.InvalidArguments > > > > > + org.bluez.Error.DoesNotExist > > > > > Media Control hierarchy > > > > > ======================= > > > > > > > > > > -- > > > > > 2.21.0 > > > > > > > > Can you try this set? > > > > > > Hello, I will try it later in next week. To test it would mean to > > > rewrite pulseaudio bluetooth modules to use this new API, so it would > > > take me longer time. > > > > Hi! I looked at it. But I do not know how to implement > > GetManagedObjects() method via libdbus properly. Any idea? > > I went ahead and applied this set, you can find some examples of how > to implement ObjectManager interface in gdbus but I guess what you > really need to do is make PA aware of the objects being exposed since > it does make it simpler to to enumerate objects by the clients. > Pali: How does it look with porting the PA patches to use the new interfaces? Thanks, -- Pasi