sd-bus: allow vtable format structure to grow in the future
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 18 Apr 2019 11:42:25 +0000 (13:42 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 Apr 2019 10:23:15 +0000 (12:23 +0200)
commit2caef9fba40069374f7312a7861f2f4ca04edd0b
tree10392def73fb3f4428ce595a7961cc5e0b1a1a06
parent8dd8a286d1d2770a22116d4eb730b2c3f5fa28a4
sd-bus: allow vtable format structure to grow in the future

We would check the size of sd_bus_vtable entries, requring one of the two known
sizes. But we should be able to extend the structure in the future, by adding
new fields, without breaking backwards compatiblity.

Incidentally, this check was what caused -EINVAL failures before, when programs
were compiled with systemd-242 and run with older libsystemd.
src/libsystemd/sd-bus/bus-objects.c
src/libsystemd/sd-bus/test-bus-vtable.c