]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/portable/portablectl.c
portable: add return parameter to GetImageMetadataWithExtensions
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 3 Mar 2022 15:26:36 +0000 (16:26 +0100)
committerLuca Boccassi <bluca@debian.org>
Mon, 7 Mar 2022 14:49:54 +0000 (14:49 +0000)
commit087a799f64560bb0379b8a99ebbd9ca84804e4c3
treec5f1b154f7d9214b7a9947806619f1c87248c9cf
parent6d6104e0c988b63e22f56a53bdaec80f0367f574
portable: add return parameter to GetImageMetadataWithExtensions

The complaint was that the output array was used for two kinds of data, and the
input flag decided whether this extra data should be included. The flag is
removed, and instead the old method is changed to include the data always as
a separate parameter.

This breaks backward compatibility, but  the old method is effectively broken
and does not appear to be used yet, at least in open source code, by
searching on codesearch.debian.net and github.com.

Fixes #22404.

Co-authored-by: Luca Boccassi <bluca@debian.org>
man/org.freedesktop.portable1.xml
src/portable/portable.h
src/portable/portablectl.c
src/portable/portabled-bus.c
src/portable/portabled-image-bus.c