sd-varlink: mark functions that can take 'more' flag in IDL structures with an explic...
authorLennart Poettering <lennart@poettering.net>
Tue, 1 Oct 2024 07:34:25 +0000 (09:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Oct 2024 07:22:52 +0000 (09:22 +0200)
commitda01f7c246222c1fe5f22563b91776a9d45c90f5
treedc0ef1cf81f2d5810a6a44789df9ca5929ab0069
parent198973727696ba5f7d37ec72d338fb18d4c94f86
sd-varlink: mark functions that can take 'more' flag in IDL structures with an explicit flag

Let's mark functions that accept the 'more' flag explicitly for that,
and validate for this explicitly.

This is preparation for
https://github.com/varlink/varlink.github.io/issues/26, if we get that
one day. Let's make sure that from day #1 we have this info available
even if we don't generate this in the IDL for now.

Also enables the two flags for all interfaces we export that use the
logic.
13 files changed:
src/libsystemd/sd-varlink/sd-varlink-idl.c
src/libsystemd/sd-varlink/sd-varlink.c
src/libsystemd/sd-varlink/varlink-idl-util.h
src/shared/varlink-io.systemd.BootControl.c
src/shared/varlink-io.systemd.Import.c
src/shared/varlink-io.systemd.Machine.c
src/shared/varlink-io.systemd.ManagedOOM.c
src/shared/varlink-io.systemd.PCRLock.c
src/shared/varlink-io.systemd.Resolve.Monitor.c
src/shared/varlink-io.systemd.UserDatabase.c
src/shared/varlink-io.systemd.sysext.c
src/systemd/sd-varlink-idl.h
src/test/test-varlink-idl.c