Linux bluetooth development
 help / color / mirror / Atom feed
From: Christian Fetzer <christian.fetzer@oss.bmw-carit.de>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: Marcel Holtmann <marcel@holtmann.org>,
	"linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH v3 5/8] obexd: Add RegisterNotifications function
Date: Fri, 15 Mar 2013 16:38:44 +0100	[thread overview]
Message-ID: <51434084.6060905@oss.bmw-carit.de> (raw)
In-Reply-To: <CABBYNZKcYCHg0oy2fr=uf0UwN8Mivi8jhfLfd4=jYjgzrwLWYQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2370 bytes --]

Hi Luiz,

On 03/13/2013 08:57 PM, Luiz Augusto von Dentz wrote:
> Hi Christian,
>
>
> On Wed, Mar 13, 2013 at 1:27 PM, Marcel Holtmann <marcel@holtmann.org 
> <mailto:marcel@holtmann.org>> wrote:
>
>     Hi Christian,
>
>     >>> This allows applications to register for all different types
>     >>> of MAP event reports.
>     >>>
>     >>> In response to this call, the MSE should connect to the local MNS
>     >>> instance.
>     >>> ---
>     >>> doc/obex-api.txt   |  6 ++++
>     >>> obexd/client/map.c | 86
>     ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>     >>> 2 files changed, 92 insertions(+)
>     >> never ever intermix doc/ changes with actual code. You really
>     need to learn on how to split patches properly. There is no reason
>     at all that this are not two patches.
>     >>
>     >>
>     >>> diff --git a/doc/obex-api.txt b/doc/obex-api.txt
>     >>> index 759c4d8..ef5d85e 100644
>     >>> --- a/doc/obex-api.txt
>     >>> +++ b/doc/obex-api.txt
>     >>> @@ -651,6 +651,12 @@ Methods    void SetFolder(string name)
>     >>>                     Possible errors:
>     org.bluez.obex.Error.InvalidArguments
>     >>>  org.bluez.obex.Error.Failed
>     >>>
>     >>> +           void RegisterNotifications(boolean)
>     >>> +
>     >>> +                   Register / unregister reception of
>     notifications.
>     >>> +
>     >>> +                   Possible errors:
>     org.bluez.obex.Error.InvalidArguments
>     >>> +  org.bluez.obex.Error.Failed
>
>
> Why we are not doing this automatically? The application can opt out 
> by not connecting to signals, but I see no reason why not to be 
> connected to register the notification channel automatically when 
> connecting the MAP session if the remote support it.
>
> -- 
> Luiz Augusto von Dentz

as I tried to explain, the purpose of the function in the current patch 
is to select the one device for that you will receive notifications.
I agree, it would be better to hide the notification connection setup 
and rather do it implicitly.
That needs to go hand in hand with notification support for multiple 
devices; with removing the function, you loose the possibility to select 
a device.

I'll send a suggestion for multiple device notification support in a 
separate email and try to explain the relevant spec details.
Then we can discuss it.

Br,
Christian

[-- Attachment #2: Type: text/html, Size: 4863 bytes --]

  reply	other threads:[~2013-03-15 15:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-11 15:05 [PATCH v3 0/8] MAP client: notification support Christian Fetzer
2013-03-11 15:05 ` [PATCH v3 1/8] obexd: Add get_service_record to obc_transport Christian Fetzer
2013-03-11 15:05 ` [PATCH v3 2/8] obexd: Provide SDP record in get_service_record Christian Fetzer
2013-03-11 15:05 ` [PATCH v3 3/8] obexd: Read MAP client SDP attributes Christian Fetzer
2013-03-11 16:12   ` Marcel Holtmann
2013-03-11 15:05 ` [PATCH v3 4/8] obexd: Add Message Notification Server (MNS) Christian Fetzer
2013-03-11 16:15   ` Marcel Holtmann
2013-03-11 15:05 ` [PATCH v3 5/8] obexd: Add RegisterNotifications function Christian Fetzer
2013-03-11 16:19   ` Marcel Holtmann
2013-03-13 13:20     ` Christian Fetzer
2013-03-13 16:27       ` Marcel Holtmann
2013-03-13 19:57         ` Luiz Augusto von Dentz
2013-03-15 15:38           ` Christian Fetzer [this message]
2013-03-15 15:43           ` Christian Fetzer
2013-03-11 15:05 ` [PATCH v3 6/8] obexd: Add MAP notification dispatcher Christian Fetzer
2013-03-11 15:05 ` [PATCH v3 7/8] obexd: Register MAP notification handler Christian Fetzer
2013-03-11 15:05 ` [PATCH v3 8/8] obexd: Notify registered notification handlers Christian Fetzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51434084.6060905@oss.bmw-carit.de \
    --to=christian.fetzer@oss.bmw-carit.de \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox