lib/repo: Fix annotations for out parameters
authorDavid Shea <dshea@redhat.com>
Sat, 17 Jun 2017 16:08:41 +0000 (12:08 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 19 Jun 2017 13:15:19 +0000 (13:15 +0000)
Change the annotation of the out parameters on ostree_repo_load_file
from `(allow-none)` to `(optional) (nullable)`. `allow-none` is
ambiguous, since these parameters can be both NULL on input and set to
NULL on return.

Closes: #939
Approved by: cgwalters

src/libostree/ostree-repo.c

index 49251284cb358713958d5dd0e4ae1683b411e48f..e556e4646b0c034c2fc7ad20101869a53007e0bd 100644 (file)
@@ -2618,9 +2618,9 @@ _ostree_repo_read_bare_fd (OstreeRepo           *self,
  * ostree_repo_load_file:
  * @self: Repo
  * @checksum: ASCII SHA256 checksum
- * @out_input: (out) (allow-none): File content
- * @out_file_info: (out) (allow-none): File information
- * @out_xattrs: (out) (allow-none): Extended attributes
+ * @out_input: (out) (optional) (nullable): File content
+ * @out_file_info: (out) (optional) (nullable): File information
+ * @out_xattrs: (out) (optional) (nullable): Extended attributes
  * @cancellable: Cancellable
  * @error: Error
  *