Empty Arrays

Thiago Macieira thiago at kde.org
Sun Jan 28 22:42:23 PST 2007


Kevin Krammer wrote:
>>   dbus_message_iter_recurse(&array_it, &element_it);
>>   dbus_message_iter_next(&array_it);
>
>I think this skips the first item

No. Notice that the next() is on the array iterator, not the element one.

>
>>   while (dbus_message_iter_get_arg_type(&element_It) ==
>> DBUS_TYPE_INVALID)
>
>you mean != right? ;)

Oops. Right.

-- 
  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/20070129/929bc2b3/attachment.pgp


More information about the dbus mailing list