checking for empty arrays

Havoc Pennington hp at pobox.com
Thu Oct 14 16:49:32 PDT 2010


The best way to iterate is usually:

  while ((current_type = dbus_message_iter_get_arg_type (&iter)) !=
DBUS_TYPE_INVALID)
    dbus_message_iter_next (&iter);

Havoc


More information about the dbus mailing list