Can dbus non-mix null and empty strings?

Thiago Macieira thiago at kde.org
Tue Nov 6 03:06:40 PST 2007


Em Tuesday 06 November 2007 11:49:46 Vitaly V. Ch escreveu:
> if service method return null string QString() - service client
> receive empty string QString("").
>
> It's bug or by "design"?

Design. There's no such thing as null or maybe types in D-Bus.

If you need to support a nullable type, then add a bool to your API indicating 
whether the argument followed is null or not.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20071106/27b6a303/attachment.pgp 


More information about the dbus mailing list