summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sysroot.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2018-02-23 12:46:32 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-26 19:06:59 +0000
commit7f88fddcd41f0fb12333eba145c99d2499b7767f (patch)
treee7d94073c4356c4cff20c4919883f4b197777362 /src/libostree/ostree-sysroot.h
parentc40a47e965d139cf6e72192bd582098a635b72f4 (diff)
downloadostree-7f88fddcd41f0fb12333eba145c99d2499b7767f.tar.gz
sysroot: Add concept of deployment "pinning" 📌
Example user story: Jane rebases her OS to a new major version N, and wants to keep around N-1 even after a few upgrades for a while so she can easily roll back. I plan to add `rpm-ostree rebase --pin` to opt-in to this for example. Builds on the new `libostree-transient` group to store pinning state there. Closes: https://github.com/ostreedev/ostree/issues/1460 Closes: #1464 Approved by: jlebon
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 830ed272..e4763d37 100644
--- a/src/libostree/ostree-sysroot.h
+++ b/src/libostree/ostree-sysroot.h
@@ -182,6 +182,12 @@ gboolean ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
GError **error);
_OSTREE_PUBLIC
+gboolean ostree_sysroot_deployment_set_pinned (OstreeSysroot *self,
+ OstreeDeployment *deployment,
+ gboolean is_pinned,
+ GError **error);
+
+_OSTREE_PUBLIC
gboolean ostree_sysroot_deployment_unlock (OstreeSysroot *self,
OstreeDeployment *deployment,
OstreeDeploymentUnlockedState unlocked_state,