chiark / gitweb /
sd-bus: fix marshaling of unary type
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 28 Jul 2015 16:16:16 +0000 (18:16 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:07:19 +0000 (10:07 +0100)
commit133c3e1cd0fa015721410e0f06de6ed7f415d067
treefd4d4d6e65b7c1c20a8aa7f1d729a0a3ed33d456
parentd455a7ccd53c158fc6ef51ee4b5ba8d34f7794f4
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/libelogind/sd-bus/bus-gvariant.c
src/libelogind/sd-bus/bus-message.c
src/libelogind/sd-bus/test-bus-gvariant.c