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 <luca.boccassi@gmail.com>
Wed, 9 Mar 2022 21:20:15 +0000 (21:20 +0000)
commit00b5aa8d741ad17f6b8f5f03d901b038e3a27d04
treefafbcd031b2491ccb478a98f4307630f6ef0910e
parent06d466a05c69e39058f109700c8a6c10bd4c2c89
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>
(cherry picked from commit 087a799f64560bb0379b8a99ebbd9ca84804e4c3)
man/org.freedesktop.portable1.xml
src/portable/portable.h
src/portable/portablectl.c
src/portable/portabled-bus.c
src/portable/portabled-image-bus.c