From: Colin Walters Date: Fri, 6 Nov 2020 19:24:58 +0000 (+0000) Subject: deployment: Ensure query_deployments_for returns nullable values X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~6^2~5^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8fbf2c5b807b2e582986492d6abf18eb750b95aa;p=ostree.git deployment: Ensure query_deployments_for returns nullable values Since that's a common case; hit this while working on rpm-ostree code using the ostree-rs bindings. --- diff --git a/src/libostree/ostree-sysroot.c b/src/libostree/ostree-sysroot.c index 95c19816..e3d7e425 100644 --- a/src/libostree/ostree-sysroot.c +++ b/src/libostree/ostree-sysroot.c @@ -1428,8 +1428,8 @@ _ostree_sysroot_join_lines (GPtrArray *lines) * ostree_sysroot_query_deployments_for: * @self: Sysroot * @osname: (allow-none): "stateroot" name - * @out_pending: (out) (allow-none) (transfer full): The pending deployment - * @out_rollback: (out) (allow-none) (transfer full): The rollback deployment + * @out_pending: (out) (nullable) (optional) (transfer full): The pending deployment + * @out_rollback: (out) (nullable) (optional) (transfer full): The rollback deployment * * Find the pending and rollback deployments for @osname. Pass %NULL for @osname * to use the booted deployment's osname. By default, pending deployment is the