summaryrefslogtreecommitdiff
path: root/tests/libostreetest.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-03-03 13:49:54 -0500
committerColin Walters <walters@verbum.org>2016-03-03 21:56:23 -0500
commitfea786cb2d086865d83797c842d89b7352b27527 (patch)
treebac24418dca2ffef499d182b637b84591135fbcc /tests/libostreetest.h
parentebd03709764da853483f12a31a7e0c8c4c8f8d9f (diff)
downloadostree-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 'tests/libostreetest.h')
-rw-r--r--tests/libostreetest.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/libostreetest.h b/tests/libostreetest.h
index 2ab93481..eb9bb0b2 100644
--- a/tests/libostreetest.h
+++ b/tests/libostreetest.h
@@ -27,13 +27,11 @@
G_BEGIN_DECLS
-typedef struct {
- OstreeRepo *repo;
- GSubprocess *shell;
-} OtTest;
-gboolean ot_test_setup_repo (OtTest *self,
- GCancellable *cancellable,
- GError **error);
+OstreeRepo *ot_test_setup_repo (GCancellable *cancellable,
+ GError **error);
+
+OstreeSysroot *ot_test_setup_sysroot (GCancellable *cancellable,
+ GError **error);
G_END_DECLS