Re: [Bluez-devel] D-Bus interfaces

Phil Blundell
2004-02-16T14:46:15Z

on Mon, Feb 09, 2004 at 12:15:24AM +0100, Fred Sch??ttgen wrote:
> On Sunday 08 February 2004 23:31, Marcel Holtmann wrote:
> > Do we need a special datatype for the BD_ADDR or is string the best?
>
> I can only speak from my experience with dcop, but I would try to use standard
> types whereever it's possible. In case that there exists a d-bus counterpart
> to the dcop command line utility (dbus-send maybe?), it would make the bluez
> interface more accessible for scripts.

Yes, agreed. In my experiments with D-BUS and BlueZ so far, I've been
using a simple byte array for the address. Encoding it as an ASCII
string would be another possibility, but this would generally make the
marshalling/unmarshalling process more expensive, and doesn't really
gain you anything.

p.

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!