repo: Fix load_variant_if_exists to return a nullable value
authorColin Walters <walters@verbum.org>
Tue, 30 Mar 2021 20:00:13 +0000 (20:00 +0000)
committerColin Walters <walters@verbum.org>
Sat, 3 Apr 2021 20:44:39 +0000 (16:44 -0400)
Another introspection fix I hit when trying to use this in Rust.

src/libostree/ostree-repo.c

index 0c045c41f1a7156f6bd3cb5d14470e46d4cb3247..40841c7bc65f2e8a1d2a064b9aa57e6175077ed9 100644 (file)
@@ -4452,12 +4452,13 @@ ostree_repo_query_object_storage_size (OstreeRepo           *self,
  * @self: Repo
  * @objtype: Object type
  * @sha256: ASCII checksum
- * @out_variant: (out) (transfer full): Metadata
+ * @out_variant: (out) (nullable) (transfer full): Metadata
  * @error: Error
  *
  * Attempt to load the metadata object @sha256 of type @objtype if it
  * exists, storing the result in @out_variant.  If it doesn't exist,
- * %NULL is returned.
+ * @out_variant will be set to %NULL and the function will still
+ * return TRUE.
  */
 gboolean
 ostree_repo_load_variant_if_exists (OstreeRepo       *self,