nested arrays and get_element_type

Thiago Macieira thiago at kde.org
Fri Jul 28 09:43:38 PDT 2006


Havoc Pennington wrote:
>> I need to know what the full type is so if I want to take this
>> de-serialized message and re-serialize it back into a different
>> DBusMessage I can pass the appropriate args to open_container()...
>> right?
>
>Yep, for something like this you would need the whole type.

I have some code that does exactly that. I called it "cross-marshalling". 
You can find it on the tools/qdbus/src/qdbusmarshall.cpp (at the very 
end) in a Qt 4.2 snapshot or technical preview.

You can also see it here:
http://websvn.kde.org/trunk/kdesupport/qt-dbus/src/qdbusmarshaller.cpp?rev=552662&view=auto
(but this is no longer the most recent 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: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060728/0b1fc260/attachment.pgp


More information about the dbus mailing list