diff options
author | Colin Walters <walters@verbum.org> | 2016-03-03 13:49:54 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2016-03-03 21:56:23 -0500 |
commit | fea786cb2d086865d83797c842d89b7352b27527 (patch) | |
tree | bac24418dca2ffef499d182b637b84591135fbcc /src/libostree/ostree-sysroot.h | |
parent | ebd03709764da853483f12a31a7e0c8c4c8f8d9f (diff) | |
download | ostree-fea786cb2d086865d83797c842d89b7352b27527.tar.gz |
lib: Add ostree_sysroot_load_if_changed() API
This will allow daemons like rpm-ostree to detect if there are any new
deployments efficiently, in combination with using inotify. If there
are any changes, rpm-ostree wants publish them on DBus.
While we're here, add some changes to start doing unit C testing of
the sysroot API.
Diffstat (limited to 'src/libostree/ostree-sysroot.h')
-rw-r--r-- | src/libostree/ostree-sysroot.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libostree/ostree-sysroot.h b/src/libostree/ostree-sysroot.h index cab59d0a..077862aa 100644 --- a/src/libostree/ostree-sysroot.h +++ b/src/libostree/ostree-sysroot.h @@ -52,6 +52,12 @@ gboolean ostree_sysroot_load (OstreeSysroot *self, GError **error); _OSTREE_PUBLIC +gboolean ostree_sysroot_load_if_changed (OstreeSysroot *self, + gboolean *out_changed, + GCancellable *cancellable, + GError **error); + +_OSTREE_PUBLIC void ostree_sysroot_unload (OstreeSysroot *self); _OSTREE_PUBLIC |