diff options
author | Colin Walters <walters@verbum.org> | 2013-09-15 18:07:34 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-09-15 18:08:06 -0400 |
commit | 95f07d486adcb6bb12d8da0016066d8d8db205d6 (patch) | |
tree | daa82c941be51af075565664348f996e625fddde /src/libostree/ostree-sysroot.h | |
parent | 6f929ca5af114da00030bd83d8b100706d0eebef (diff) | |
download | ostree-95f07d486adcb6bb12d8da0016066d8d8db205d6.tar.gz |
libostree: Move a lot more sysroot API here
OstreeBootloader is temporarily public API.
Diffstat (limited to 'src/libostree/ostree-sysroot.h')
-rw-r--r-- | src/libostree/ostree-sysroot.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/libostree/ostree-sysroot.h b/src/libostree/ostree-sysroot.h index 490d5d2c..5df0ae70 100644 --- a/src/libostree/ostree-sysroot.h +++ b/src/libostree/ostree-sysroot.h @@ -21,6 +21,8 @@ #pragma once #include "ostree-repo.h" +#include "ostree-deployment.h" +#include "ostree-bootloader.h" G_BEGIN_DECLS @@ -42,5 +44,34 @@ gboolean ostree_sysroot_ensure_initialized (OstreeSysroot *self, GCancellable *cancellable, GError **error); +gboolean ostree_sysroot_read_current_subbootversion (OstreeSysroot *self, + int bootversion, + int *out_subbootversion, + GCancellable *cancellable, + GError **error); + +gboolean ostree_sysroot_list_deployments (OstreeSysroot *self, + int *out_bootversion, + GPtrArray **out_deployments, + GCancellable *cancellable, + GError **error); + +GFile *ostree_sysroot_get_deployment_directory (OstreeSysroot *self, + OstreeDeployment *deployment); + +GFile * ostree_sysroot_get_deployment_origin_path (GFile *deployment_path); + +gboolean ostree_sysroot_cleanup (OstreeSysroot *self, + GCancellable *cancellable, + GError **error); + +gboolean ostree_sysroot_get_repo (OstreeSysroot *self, + OstreeRepo **out_repo, + GCancellable *cancellable, + GError **error); + +OstreeBootloader *ostree_sysroot_query_bootloader (OstreeSysroot *sysroot); + + G_END_DECLS |