[XESAM] Search API Update Proposals

Thiago Macieira thiago at kde.org
Tue Aug 7 14:42:25 PDT 2007


Jos van den Oever wrote:
>2007/8/7, Thiago Macieira <thiago at kde.org>:
>> 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
-------------- 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/xdg/attachments/20070807/076e6a86/attachment.pgp 


More information about the xdg mailing list