Re: [Bluez-devel] Proposed DTD

Marcel Holtmann
2006-11-13T07:17:45Z

Hi Denis,

> > The current XML format is for both, but it makes some assumptions and
> > simplifications. In 99% of the use cases this is enough and for the
> > other 1% you have to deal with the binary format. And this is totally
> > fine in case of easy use.
>
> Ok, cool. I'm just worried about code duplication and maintenance of multiple
> formats. E.g. looking at the new service framework (which is something that
> we're very interested in for instance), it takes a binary formatted sdp
> record. Would there also be a version for XML?

yes, there will be a XML version for registering SDP records. However
someone has to write it.

> > Actually it should be enough to have support for libexpat and libxml2
> > since one of these is required by D-Bus anyway. So I would start with
> > libexpat for now. It should be common/sdp-expat.c and I will create the
> > autoconf magic around it.
>
> Ok, I will work on a parser based on expat.

Add the function prototypes to common/sdp-xml.h and the actual
implementation to common/sdp-expat.c and an implementation that returns
an error to common/sdp-dummy.c to make it compile with systems where the
Expat library is not available.

Regards

Marcel