repo: Fix load_variant_if_exists to return a nullable value

Another introspection fix I hit when trying to use this in Rust.
This commit is contained in:
Colin Walters 2021-03-30 20:00:13 +00:00
parent 6d0bb10bf0
commit 0c0e58e06c
1 changed files with 3 additions and 2 deletions

View 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,