summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sysroot.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2015-04-17 09:13:31 -0400
committerColin Walters <walters@verbum.org>2015-04-17 14:15:11 -0400
commit24087d477cd738a8efebe852d858fad2df699fb2 (patch)
treea497859bb29f274d87daaad17da37a7c8b3eb4be /src/libostree/ostree-sysroot.h
parent60ebec770e56a61611eb7086bdc8f558e751003b (diff)
downloadostree-24087d477cd738a8efebe852d858fad2df699fb2.tar.gz
sysroot: Add ostree_sysroot_get_fd()
This way external programs like rpm-ostree can do fd-relative operations on the deployment directories, like inspecting the RPM database. Closes: https://github.com/GNOME/ostree/pull/91
Diffstat (limited to 'src/libostree/ostree-sysroot.h')
-rw-r--r--src/libostree/ostree-sysroot.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libostree/ostree-sysroot.h b/src/libostree/ostree-sysroot.h
index 4342470f..fe6441fb 100644
--- a/src/libostree/ostree-sysroot.h
+++ b/src/libostree/ostree-sysroot.h
@@ -39,6 +39,8 @@ OstreeSysroot* ostree_sysroot_new_default (void);
GFile *ostree_sysroot_get_path (OstreeSysroot *self);
+int ostree_sysroot_get_fd (OstreeSysroot *self);
+
gboolean ostree_sysroot_load (OstreeSysroot *self,
GCancellable *cancellable,
GError **error);