All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] obex/session: Redefine session target property
@ 2013-07-17  3:00 martin.xu
  2013-07-17  8:07 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: martin.xu @ 2013-07-17  3:00 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Martin Xu

From: Martin Xu <martin.xu@linux.intel.com>

The definition of Target should be the same with Target parameter
of CreateSession.

And add TargetUUID for the external profile that can't be shown from Target
---
 doc/obex-api.txt |   18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

 Changelog:
 v2: Add description why we need add TargetUUID property

diff --git a/doc/obex-api.txt b/doc/obex-api.txt
index 22449c4..924df2f 100644
--- a/doc/obex-api.txt
+++ b/doc/obex-api.txt
@@ -68,7 +68,23 @@ Properties	string Source [readonly]
 
 		string Target [readonly]
 
-			Target UUID
+			The currently supported targets are the following:
+
+				"ftp"
+				"map"
+				"opp"
+				"pbap"
+				"sync"
+
+		string TargetUUID [readonly]
+
+			The UUID of target
+
+			TargetUUID is useful when the target is from
+			external profile and can't be exported from
+			Property Target
+
+			Opp doesn't have Target UUID, and is optional here
 
 		string Root [readonly]
 
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] obex/session: Redefine session target property
  2013-07-17  3:00 [PATCH v2] obex/session: Redefine session target property martin.xu
@ 2013-07-17  8:07 ` Luiz Augusto von Dentz
  2013-07-17  9:17   ` Xu, Martin
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2013-07-17  8:07 UTC (permalink / raw)
  To: martin.xu; +Cc: linux-bluetooth

Hi Martin,

On Wed, Jul 17, 2013 at 6:00 AM,  <martin.xu@linux.intel.com> wrote:
> From: Martin Xu <martin.xu@linux.intel.com>
>
> The definition of Target should be the same with Target parameter
> of CreateSession.
>
> And add TargetUUID for the external profile that can't be shown from Target
> ---
>  doc/obex-api.txt |   18 +++++++++++++++++-
>  1 file changed, 17 insertions(+), 1 deletion(-)
>
>  Changelog:
>  v2: Add description why we need add TargetUUID property
>
> diff --git a/doc/obex-api.txt b/doc/obex-api.txt
> index 22449c4..924df2f 100644
> --- a/doc/obex-api.txt
> +++ b/doc/obex-api.txt
> @@ -68,7 +68,23 @@ Properties   string Source [readonly]
>
>                 string Target [readonly]
>
> -                       Target UUID
> +                       The currently supported targets are the following:
> +
> +                               "ftp"
> +                               "map"
> +                               "opp"
> +                               "pbap"
> +                               "sync"
> +
> +               string TargetUUID [readonly]
> +
> +                       The UUID of target
> +
> +                       TargetUUID is useful when the target is from
> +                       external profile and can't be exported from
> +                       Property Target
> +
> +                       Opp doesn't have Target UUID, and is optional here
>
>                 string Root [readonly]
>
> --
> 1.7.10.4

You still didn't address any of my concerns, neither of these
properties is supposed to be show to the user, which probably don't
know what those names mean, and any logic to match session type don't
need to check both friendly name _and_ UUID, the latter should be
enough even for proprietary/non-standard ones. The documentation of
CreateSession is the one that needs adjustment, it should clearly
state Target is a UUID and friendly names can be use for convenience
but I expect them to be used just in scripts because application
should really be using UUIDs anyway as in org.bluez.Device1.UUIDs,
their friendly names are never exposed in any of our APIs.


--
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH v2] obex/session: Redefine session target property
  2013-07-17  8:07 ` Luiz Augusto von Dentz
@ 2013-07-17  9:17   ` Xu, Martin
  0 siblings, 0 replies; 3+ messages in thread
From: Xu, Martin @ 2013-07-17  9:17 UTC (permalink / raw)
  To: Luiz Augusto von Dentz, martin.xu; +Cc: linux-bluetooth

Hi Luiz:
> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> owner@vger.kernel.org] On Behalf Of Luiz Augusto von Dentz
> Sent: Wednesday, July 17, 2013 16:08
> To: martin.xu@linux.intel.com
> Cc: linux-bluetooth@vger.kernel.org
> Subject: Re: [PATCH v2] obex/session: Redefine session target property
> 
> Hi Martin,
> 
> On Wed, Jul 17, 2013 at 6:00 AM,  <martin.xu@linux.intel.com> wrote:
> > From: Martin Xu <martin.xu@linux.intel.com>
> >
> > The definition of Target should be the same with Target parameter of
> > CreateSession.
> >
> > And add TargetUUID for the external profile that can't be shown from
> > Target
> > ---
> >  doc/obex-api.txt |   18 +++++++++++++++++-
> >  1 file changed, 17 insertions(+), 1 deletion(-)
> >
> >  Changelog:
> >  v2: Add description why we need add TargetUUID property
> >
> > diff --git a/doc/obex-api.txt b/doc/obex-api.txt index
> > 22449c4..924df2f 100644
> > --- a/doc/obex-api.txt
> > +++ b/doc/obex-api.txt
> > @@ -68,7 +68,23 @@ Properties   string Source [readonly]
> >
> >                 string Target [readonly]
> >
> > -                       Target UUID
> > +                       The currently supported targets are the
> following:
> > +
> > +                               "ftp"
> > +                               "map"
> > +                               "opp"
> > +                               "pbap"
> > +                               "sync"
> > +
> > +               string TargetUUID [readonly]
> > +
> > +                       The UUID of target
> > +
> > +                       TargetUUID is useful when the target is from
> > +                       external profile and can't be exported from
> > +                       Property Target
> > +
> > +                       Opp doesn't have Target UUID, and is optional
> > + here
> >
> >                 string Root [readonly]
> >
> > --
> > 1.7.10.4
> 
> You still didn't address any of my concerns, neither of these
> properties is supposed to be show to the user, which probably don't
> know what those names mean, and any logic to match session type don't
> need to check both friendly name _and_ UUID, the latter should be
> enough even for proprietary/non-standard ones. The documentation of
> CreateSession is the one that needs adjustment, it should clearly state
> Target is a UUID and friendly names can be use for convenience but I
> expect them to be used just in scripts because application should
> really be using UUIDs anyway as in org.bluez.Device1.UUIDs, their
> friendly names are never exposed in any of our APIs.
I am ok with it, but OPP target head is not used, so user can't get
Target if it is OPP session. Which may confuse user.

Or can we just use the profile uuid instead of Target head UUID?
Thanks!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-17  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-17  3:00 [PATCH v2] obex/session: Redefine session target property martin.xu
2013-07-17  8:07 ` Luiz Augusto von Dentz
2013-07-17  9:17   ` Xu, Martin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.