[PATCH] various fixes for marshlling empty fixed type arrays

Rob Taylor robtaylor at floopily.org
Mon Feb 6 16:31:51 PST 2006


Here are a sequence of patches that make it possible to send and receive
empty GArrays from the dbus bindings.

Most are pretty self explanatory, but fixed-array-size-assert.patch is
slightly subtle - it appears to be invalid to call
_dbus_type_reader_get_current_type when at the end of an array. However
that the array is an array of a fixed type is asserted in
_dbus_type_reader_read_fixed_multi anyhow, so this assert was redundant
*and* incorrect.

Thanks,
Rob Taylor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: empty-garray-test.patch
Type: text/x-patch
Size: 849 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060207/8de65173/empty-garray-test.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-marshalling-of-empty-array.patch
Type: text/x-patch
Size: 990 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060207/8de65173/fix-marshalling-of-empty-array.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-bogus-array-not-empty-assertions.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060207/8de65173/remove-bogus-array-not-empty-assertions.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-get-fixed-array-bogus-assertion.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060207/8de65173/remove-get-fixed-array-bogus-assertion.bin


More information about the dbus mailing list