summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sysroot.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2015-02-12 09:13:30 -0500
committerColin Walters <walters@verbum.org>2015-04-10 17:54:08 -0400
commit42744628b3bce512e6024ca79804e50275bf1a04 (patch)
tree24a65ba40031bd460a9b938814a8e7d35ce3e266 /src/libostree/ostree-sysroot.h
parent54f848a78ce87bd2ef0f278040534617be64da45 (diff)
downloadostree-42744628b3bce512e6024ca79804e50275bf1a04.tar.gz
Add an API to set/unset a deployment tree's mutability
This will be used by rpm-ostree to unset the immutable bit temporarily in order to do package layering. We could add an API to deploy a tree without the immutable bit, but this is simpler.
Diffstat (limited to 'src/libostree/ostree-sysroot.h')
-rw-r--r--src/libostree/ostree-sysroot.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libostree/ostree-sysroot.h b/src/libostree/ostree-sysroot.h
index 54203f19..4342470f 100644
--- a/src/libostree/ostree-sysroot.h
+++ b/src/libostree/ostree-sysroot.h
@@ -96,6 +96,12 @@ gboolean ostree_sysroot_deploy_tree (OstreeSysroot *self,
GCancellable *cancellable,
GError **error);
+gboolean ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
+ OstreeDeployment *deployment,
+ gboolean mutable,
+ GCancellable *cancellable,
+ GError **error);
+
OstreeDeployment *ostree_sysroot_get_merge_deployment (OstreeSysroot *self,
const char *osname);