Jos van den Oever wrote: >2007/8/7, Thiago Macieira <[EMAIL PROTECTED]>: >> I'm not following the discussion, but I can help you with the question >> about Qt. >> >> Can someone explain what you're expecting to do? > >We return hits from xesam as a 'aav' at the moment. The first array is >indexed with the hit number, the second index is the field number. The >field numbers are defined by the caller by giving in a 'as'. The 'v' >is the value in a field for a particular search hit. > >Since DBus does not have 'null' we are looking for a workaround. The >proposals now are: > - use 'bv' instead of 'v' where b = 0 means NULL > - use 'v' and say that if type == 'byte' and value == 0 we mean NULL, >regardless of field type
Neither solution is a problem with QtDBus. The "bv" solution would generate larger messages, but faster parsing (QtDBus delays decoding of variants until actual use). In any case, we're discussing null types in D-Bus itself. This will probably require a new major message version... -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
