lib/sysroot: Expand docs for ostree_sysroot_get_repo()
authorPhilip Withnall <withnall@endlessm.com>
Mon, 23 Oct 2017 14:59:31 +0000 (15:59 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 23 Oct 2017 16:17:20 +0000 (16:17 +0000)
Add some missing annotations and clarify that it always returns an open
repository on success.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1300
Approved by: cgwalters

src/libostree/ostree-sysroot.c

index ac4184864ae2a707ed19b4548918c047c7fdadfe..f9d8fb8cf0a9dbe4eacd2f6e88705fafe21dccbb 100644 (file)
@@ -983,11 +983,14 @@ ostree_sysroot_get_deployment_origin_path (GFile   *deployment_path)
 /**
  * ostree_sysroot_get_repo:
  * @self: Sysroot
- * @out_repo: (out): Repository in sysroot @self
+ * @out_repo: (out) (transfer full) (optional): Repository in sysroot @self
  * @cancellable: Cancellable
  * @error: Error
  *
- * Retrieve the OSTree repository in sysroot @self.
+ * Retrieve the OSTree repository in sysroot @self. The repo is guaranteed to be open
+ * (see ostree_repo_open()).
+ *
+ * Returns: %TRUE on success, %FALSE otherwise
  */
 gboolean
 ostree_sysroot_get_repo (OstreeSysroot         *self,