NULL Variants?

Havoc Pennington hp at redhat.com
Mon Aug 29 07:09:23 PDT 2005


On Mon, 2005-08-29 at 14:13 +0200, Jakub Piotr Cłapa wrote:
> Nate Nielsen wrote:
> > When sending a DBUS variant across the wire, is there a way to specify a
> > NULL/None/Missing value? I'm using the GLib bindings. I've tried various
> > things and gotten crashes and big bad warnings.
> > 
> > Cheers,
> > Nate
> > 
> > Note: It remains to be seen if this will actually make it to the dbus
> > list. It seems some messages never turn up.
> 
> I'm sending Bytes with value of 0 (since I never use them as the valid 
> values in my protocol). Maybe a NULL type could be a useful addition 
> (AFAIK there is nothing right now that resembles it).
> 

We used to have one and deleted it on purpose, I don't remember the full
reason why but it's probably in the list archives.

Havoc




More information about the dbus mailing list