2008-07-07 20:53:44

by Manuel Naranjo

[permalink] [raw]
Subject: [Bluez-devel] No more binary SDP registration in new 4.0 API?

Hello everyone,

I've been asking this the hole weekend on the irc channel, but yet no
one could tell me if this is a bug or a feature, or what ever.

On Dbus api 3.X you could register binary sdp records over dbus, but new
api can't I all ready implemented adding records, I need to implement
the update records. But I would like to know if it makes sense to commit
this patch or not.

Thanks,
Manuel

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2008-07-09 00:26:59

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] No more binary SDP registration in new 4.0 API?

Hi Manuel,

> > the idea is not to use binary SDP records at all anymore. Also we wanna
> > move the record registration and service authorization into a plugin and
> > don't have this in the Adapter interface anymore.
> >
> Ok got it. So then to work with binary records you should use bluelib
> right? Or this is going to be deprecated too?.

yes, the access via SDP Unix socket will also go away.

> Thing is that in cases like BIP you wanna work with binary stuff,
> embedding xml records in your code might not be a good idea at all.
>
> In fact the patch I created was to start making obex-data-server use the
> new API, but this was some how a boomer. What shall we do? Use sdplib,
> or go with xml strings?

I think the best is to move this all into a plugin and then we could
have a plugin that provides binary record registration. However I am not
a big fan of doing SDP without XML anymore. Building the record with the
current C function is painful and leads to errors or memory leaks.

Regards

Marcel



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-07-08 19:10:01

by Manuel Naranjo

[permalink] [raw]
Subject: Re: [Bluez-devel] No more binary SDP registration in new 4.0 API?

Hi Marcel,
> the idea is not to use binary SDP records at all anymore. Also we wanna
> move the record registration and service authorization into a plugin and
> don't have this in the Adapter interface anymore.
>
Ok got it. So then to work with binary records you should use bluelib
right? Or this is going to be deprecated too?.

Thing is that in cases like BIP you wanna work with binary stuff,
embedding xml records in your code might not be a good idea at all.

In fact the patch I created was to start making obex-data-server use the
new API, but this was some how a boomer. What shall we do? Use sdplib,
or go with xml strings?

Thanks,
Manuel

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-07-08 20:41:34

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] No more binary SDP registration in new 4.0 API?

Hi Manuel,

> I've been asking this the hole weekend on the irc channel, but yet no
> one could tell me if this is a bug or a feature, or what ever.
>
> On Dbus api 3.X you could register binary sdp records over dbus, but new
> api can't I all ready implemented adding records, I need to implement
> the update records. But I would like to know if it makes sense to commit
> this patch or not.

the idea is not to use binary SDP records at all anymore. Also we wanna
move the record registration and service authorization into a plugin and
don't have this in the Adapter interface anymore.

Regards

Marcel



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel