Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6086790ybi; Sun, 21 Jul 2019 08:59:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmOmrKGwiIZWc3xh+sycLmVrq12ESEpxKL+9wkw3fYjBIbggL48c6dS0VgJq2pjiO/QBcL X-Received: by 2002:a63:7205:: with SMTP id n5mr12622975pgc.443.1563724748231; Sun, 21 Jul 2019 08:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563724748; cv=none; d=google.com; s=arc-20160816; b=ZSFPrWQLHpAkleuthqVjGYqjYzTSRFyroD+zGPgqHitAYIs/2jBOr15PGZvT8GAet2 kZNdeMj2qaB5dl+AwRKKBkW1gOCYDQCHGSZIYxcK1uEgrGNjRxjn++PYkt7Ol0Pnmatp 10z+kz3ZJ9O5E6mfLMhARksX6g7DQhjIxJX6qZLPNs6c6+lPxqIShNi1bBmnb6zhAr2x oS2Ce7A6rIaHTlF6+Yub8JnlveEHRoOOnjzjfvdMRzrgX3SpYcg3BGFMb5dWDNHTPD3e U2bYBFygqnCh2fLthFNEgftmM+IhiV0jZo5lq1I1wU29nCt9p5KzlDF9uYVykcxKjK0r Axfg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ygvBZlLVRFcQ1rWmFwvLk0UErbyFefQDSV2rjJuwSRs=; b=Pil5zLGBWgC9SODkzEqmeyLwJWiJQ7dRWeUUrhVshYBEi3YLfXfOLnzfirEkLdvW+u iOmWOargHgXbiDhr7V49QGUvKvHqf3eXj1nH6ImWXOM85PoLivbyNtm0Vxeu6tHcOAeq TcjN1rRp0MQtZ33GcWPr6XCuL5zEYnjsx5q8pbFwjyfONvCIdVzpLhG7mSvstlHm7vwt OYjbXBHzXft9Arj6z+pPQm1rNBH7Aua0WQ/hQDIAA6LmIpnwrqqIhSXsR1cM9BpxmMcc zPgm7cKH5Cn9VbTPF1TXSAcp8OgHLMsIASLTA4YHRG+egWt/ri8mqJBOF0E9VkPfLe1L fk2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mdmEriSh; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si7428048pgc.40.2019.07.21.08.58.25; Sun, 21 Jul 2019 08:59:08 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mdmEriSh; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726555AbfGUPz0 (ORCPT + 99 others); Sun, 21 Jul 2019 11:55:26 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39157 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726441AbfGUPz0 (ORCPT ); Sun, 21 Jul 2019 11:55:26 -0400 Received: by mail-wr1-f67.google.com with SMTP id x4so36815180wrt.6 for ; Sun, 21 Jul 2019 08:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ygvBZlLVRFcQ1rWmFwvLk0UErbyFefQDSV2rjJuwSRs=; b=mdmEriShNfUSij6KuLEwyNXMGxz0iAyCMhr6uuTHxt3wYxkdUZgUaIe3glKjAB2/oO 0Ort8sPQHFNSYT1ucBhH4FNq5OzwCHjQIopk2WSAgxoInXDb2Pl6m3wgicMNQxlur/Wc 8GCXdHCVtHnvAnTXtIJTbB33aiJu5wkimXmxsavO+T4D1uUVdxsjy4YVIITLhXmibBRN 9A8heeIWw68O5+p6ZXUhrXdq+Cs1GEPpg02yW4jENH4NAKueuhqJy+lFGHcGLusOEBXG fOIlK6C3mcnxZVntFueCdz5evdUlVB0VwxXYeemj3K9Z+66mgX0ljH6ewqOSglnQrxlT TVeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ygvBZlLVRFcQ1rWmFwvLk0UErbyFefQDSV2rjJuwSRs=; b=HvSGFmECHweHgXQRroBgfIhv/SLoTZhCECmfLC30jSYnu3hLryE64fLoT45MEA6Bpw eStvx/9Dvn/DDvCSLGuJ4ahf2ncGseAoH+9X49L1Qnd15L6D4VPJxwmpXaqj2j8IYJvM aEkaeSmNUyCbHieyXy2cLBZqbIp1+n4pijWwVvM+jcyZvpnh5vaYsizx2izd7EPTnrDH 6++ObmmpxMr/jfAt2bJEOnNfypKi2zJ7kyVz/4Pcbbix6ztey+q6hGb/mExH7MA3niZD IHfMDqnfzk7EmyiqAGzSCv7ADKGJRhemzJD32mqbqrI1klwS0sLWaehPYOi87sMD/GNK 4eRA== X-Gm-Message-State: APjAAAWQodPa9lcqBPGOttCBGGNoDAi0yzxHQUxBjDDD2yFNjsi2zDoP tdh3ytgbYuMGdKdsAu9jRaE= X-Received: by 2002:adf:e483:: with SMTP id i3mr28902842wrm.210.1563724524496; Sun, 21 Jul 2019 08:55:24 -0700 (PDT) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id g8sm41378874wme.20.2019.07.21.08.55.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Jul 2019 08:55:23 -0700 (PDT) Date: Sun, 21 Jul 2019 17:55:22 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Luiz Augusto von Dentz Cc: "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ 1/4] doc/media-api: Add RegisterApplication method Message-ID: <20190721155522.3vqt7vsprhpxflqf@pali> References: <20190712151329.11333-1-luiz.dentz@gmail.com> <20190718100024.ii2igadxb2lmmitm@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7t6vwjx5czol3o3p" Content-Disposition: inline In-Reply-To: <20190718100024.ii2igadxb2lmmitm@pali> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --7t6vwjx5czol3o3p Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thursday 18 July 2019 12:00:24 Pali Roh=C3=A1r wrote: > On Saturday 13 July 2019 17:52:46 Luiz Augusto von Dentz wrote: > > Hi Pali, > >=20 > > 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 r= oot > > > + object which must implement ObjectManager. > > > + > > > + The application object path together with the= D-Bus > > > + system bus connection ID define the identific= ation of > > > + the application. > > > + > > > + Possible errors: org.bluez.Error.InvalidArgum= ents > > > + org.bluez.Error.AlreadyExists > > > + > > > + void UnregisterApplication(object application) > > > + > > > + This unregisters the services that has been > > > + previously registered. The object path parame= ter > > > + must match the same value that has been used > > > + on registration. > > > + > > > + Possible errors: org.bluez.Error.InvalidArgum= ents > > > + org.bluez.Error.DoesNotExist > > > Media Control hierarchy > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > > > -- > > > 2.21.0 > >=20 > > Can you try this set? >=20 > 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? --=20 Pali Roh=C3=A1r pali.rohar@gmail.com --7t6vwjx5czol3o3p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQS4VrIQdKium2krgIWL8Mk9A+RDUgUCXTSK6QAKCRCL8Mk9A+RD UsiNAKC87jE9gV3eXQhDk3YJi3lR+Ud2cgCbBnsudwzxI98dCghoBnSJ8T8j4r4= =qtUl -----END PGP SIGNATURE----- --7t6vwjx5czol3o3p--