API question: dbus_message_iter_append_simple
Thiago Macieira
thiago at kde.org
Sun Oct 15 06:29:43 PDT 2006
Daniel Stone wrote:
>Hi,
>Why does this take a pointer to a string?
>
>i.e.,
>char *foo = strdup("some test data");
>dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &foo);
>instead of:
>dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, "some test
> data");
Answered in the other email.
--
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/20061015/7a61538b/attachment.pgp
More information about the dbus
mailing list