summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sysroot.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-05-25 19:38:52 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2017-05-26 19:17:59 +0000
commit9bf8a8503afa5cc7acacc8203490330292da7f85 (patch)
tree5c124a0894f4f9e3f55678791c92ed90ad29ba2b /src/libostree/ostree-sysroot.h
parented430b45de6e298ee573dbeccd88d75057a41c6d (diff)
downloadostree-9bf8a8503afa5cc7acacc8203490330292da7f85.tar.gz
lib/sysroot: Add non-failable ostree_sysroot_repo()
Having a failable accessor is annoying, since it's really common to reference both. Instead, open the repo once when we load the sysroot, and provide a non-failable accessor. This is also prep for `ostree_repo_open_at()`, which collapses the separation between `ostree_repo_new()` and `ostree_repo_open()`. Closes: #886 Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-sysroot.h')
-rw-r--r--src/libostree/ostree-sysroot.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libostree/ostree-sysroot.h b/src/libostree/ostree-sysroot.h
index 09614b55..e5969e9e 100644
--- a/src/libostree/ostree-sysroot.h
+++ b/src/libostree/ostree-sysroot.h
@@ -127,6 +127,9 @@ gboolean ostree_sysroot_write_origin_file (OstreeSysroot *sysroot,
GError **error);
_OSTREE_PUBLIC
+OstreeRepo * ostree_sysroot_repo (OstreeSysroot *self);
+
+_OSTREE_PUBLIC
gboolean ostree_sysroot_get_repo (OstreeSysroot *self,
OstreeRepo **out_repo,
GCancellable *cancellable,