]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-bus/bus-gvariant.c
sd-bus: fix marshaling of unary type
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 28 Jul 2015 16:16:16 +0000 (18:16 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 29 Jul 2015 14:38:14 +0000 (16:38 +0200)
commite53d21d00740a1dfc2090cb5f1ac29b11b2baa27
tree630563cf6994110a735431fe1aedb84aceca9d97
parent9a8fb5ae172f03c26618b8a75478417bec8c0dd2
sd-bus: fix marshaling of unary type

The unary type has a fixed size of 1 in gvariant. Make sure we properly
encode it as such. Right now, we encode/decode it as empty sequence.
src/libsystemd/sd-bus/bus-gvariant.c
src/libsystemd/sd-bus/bus-message.c
src/libsystemd/sd-bus/test-bus-gvariant.c