diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-03 16:26:36 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2022-03-07 14:49:54 +0000 |
commit | 087a799f64560bb0379b8a99ebbd9ca84804e4c3 (patch) | |
tree | c5f1b154f7d9214b7a9947806619f1c87248c9cf /man | |
parent | 6d6104e0c988b63e22f56a53bdaec80f0367f574 (diff) | |
download | systemd-087a799f64560bb0379b8a99ebbd9ca84804e4c3.tar.gz |
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>
Diffstat (limited to 'man')
-rw-r--r-- | man/org.freedesktop.portable1.xml | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/man/org.freedesktop.portable1.xml b/man/org.freedesktop.portable1.xml index 4842885c0c..10f7c21367 100644 --- a/man/org.freedesktop.portable1.xml +++ b/man/org.freedesktop.portable1.xml @@ -54,6 +54,7 @@ node /org/freedesktop/portable1 { in t flags, out s image, out ay os_release, + out a{say} extensions, out a{say} units); GetImageState(in s image, out s state); @@ -189,19 +190,12 @@ node /org/freedesktop/portable1 { and a list of portable units contained in the image, in the form of a string (unit name) and an array of bytes with the content.</para> - <para><function>GetImageMetadataWithExtensions()</function> retrieves metadata associated with an image. - This method is a superset of <function>GetImageMetadata()</function> with the addition of - a list of extensions as input parameter, which were overlaid on top of the main - image via <function>AttachImageWithExtensions()</function>. - The <varname>flag</varname> parameter can be used to request that, before the units, the path of - each extension and an array of bytes with the content of the respective extension-release file - are sent. One such structure will be sent for each extension named in the input arguments. The - flag value to enable this functionality is defined as follows:</para> - - <programlisting> -#define PORTABLE_INSPECT_EXTENSION_RELEASES (UINT64_C(1) << 1) - </programlisting> - + <para><function>GetImageMetadataWithExtensions()</function> retrieves metadata associated with an + image. This method is a superset of <function>GetImageMetadata()</function> with the addition of a list + of extensions as input parameter, which were overlaid on top of the main image via + <function>AttachImageWithExtensions()</function>. The path of each extension and an array of bytes with + the content of the respective extension-release file are returned, one such structure for each + extension named in the input arguments.</para> <para><function>GetImageState()</function> retrieves the image state as one of the following strings: @@ -352,6 +346,7 @@ node /org/freedesktop/portable1 { in t flags, out s image, out ay os_release, + out a{say} extensions, out a{say} units); GetState(out s state); GetStateWithExtensions(in as extensions, |