Need functions to copy one, more or all arguments between two DBusMessage

Thiago Macieira thiago at kde.org
Tue Jul 7 02:48:35 PDT 2009


Peng Huang wrote:
>Hi,
>
>Sometime, I need copy arguments from a DBusMessage object to another
> one, but the arguments are very complex structures. Does dbus has
> functions to copy one, more or all atguments between two DBusMessage
> objects?

No, it doesn't have functions to do those deep copies. You have to iterate 
and do the copy yourself, of each and every argument and sub-argument.
-- 
  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/20090707/00331c2f/attachment.pgp 


More information about the dbus mailing list