deployment: Ensure query_deployments_for returns nullable values
authorColin Walters <walters@verbum.org>
Fri, 6 Nov 2020 19:24:58 +0000 (19:24 +0000)
committerColin Walters <walters@verbum.org>
Wed, 11 Nov 2020 22:01:39 +0000 (22:01 +0000)
Since that's a common case; hit this while working on rpm-ostree
code using the ostree-rs bindings.

src/libostree/ostree-sysroot.c

index 95c198164400ea7a6115d63bf9086955aee6463a..e3d7e425c2f81cb371eb0dc4e5be62d23993ebed 100644 (file)
@@ -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