API question: dbus_message_iter_append_simple

Daniel Stone daniel at fooishbar.org
Thu Sep 14 03:24:58 PDT 2006


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");

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060914/1230add2/attachment-0001.pgp


More information about the dbus mailing list