summaryrefslogtreecommitdiff
path: root/lib/subunit/c/include
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-30 09:29:42 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-30 09:29:42 +0200
commite36f72628173ad476744670a5dbf25a3335e0a19 (patch)
tree4e2fde3d1969da1726a4e3202e5d41f2bf6172d9 /lib/subunit/c/include
parent41182200a35083a0010f95f622a4ce386c5f0518 (diff)
downloadsamba-e36f72628173ad476744670a5dbf25a3335e0a19.tar.gz
samba-e36f72628173ad476744670a5dbf25a3335e0a19.tar.bz2
samba-e36f72628173ad476744670a5dbf25a3335e0a19.zip
subunit: Import new upstream snapshot (adds subunit_progress())
Diffstat (limited to 'lib/subunit/c/include')
-rw-r--r--lib/subunit/c/include/subunit/child.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/subunit/c/include/subunit/child.h b/lib/subunit/c/include/subunit/child.h
index 0a4e60127b..896d2dfad0 100644
--- a/lib/subunit/c/include/subunit/child.h
+++ b/lib/subunit/c/include/subunit/child.h
@@ -74,6 +74,23 @@ extern void subunit_test_skip(char const * const name,
char const * const reason);
+enum subunit_progress_whence {
+ SUBUNIT_PROGRESS_SET,
+ SUBUNIT_PROGRESS_CUR,
+ SUBUNIT_PROGRESS_POP,
+ SUBUNIT_PROGRESS_PUSH,
+};
+
+/**
+ * subunit_progress:
+ *
+ * Report the progress of a test run.
+ * @whence: The type of progress update to report.
+ * @offset: Offset of the progress (only for SUBUNIT_PROGRESS_SET
+ * and SUBUNIT_PROGRESS_CUR).
+ */
+extern void subunit_progress(enum subunit_progress_whence whence, int offset);
+
#ifdef __cplusplus
}
#endif