From fea786cb2d086865d83797c842d89b7352b27527 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 3 Mar 2016 13:49:54 -0500 Subject: 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. --- src/libostree/ostree-sysroot.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libostree/ostree-sysroot.h') 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 @@ -51,6 +51,12 @@ gboolean ostree_sysroot_load (OstreeSysroot *self, GCancellable *cancellable, 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); -- cgit v1.2.1