repo: Fix nullability for remote options
authorColin Walters <walters@verbum.org>
Fri, 17 Mar 2023 12:20:16 +0000 (08:20 -0400)
committerColin Walters <walters@verbum.org>
Fri, 17 Mar 2023 12:25:23 +0000 (08:25 -0400)
Unfortunately, the nullability of the output value here is
dependent on whether the `default_value` parameter is provided.  There's
no way to express this in introspection or Rust.

src/libostree/ostree-repo.c

index fd9592d7c7f01a5cb65f1f773c2364129ed9d75d..11175db457f4651eb1d8274dc8c5cfb3c1e4d9b2 100644 (file)
@@ -982,7 +982,7 @@ _ostree_repo_remote_name_is_file (const char *remote_name)
  * underneath that group, or @default_value if the remote exists but not the
  * option name.  If an error is returned, @out_value will be set to %NULL.
  *
- * Returns: %TRUE on success, otherwise %FALSE with @error set
+ * Returns: (nullable): %TRUE on success, otherwise %FALSE with @error set
  *
  * Since: 2016.5
  */