From e36f72628173ad476744670a5dbf25a3335e0a19 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 30 Sep 2010 09:29:42 +0200 Subject: subunit: Import new upstream snapshot (adds subunit_progress()) --- lib/subunit/c/include/subunit/child.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/subunit/c/include') 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 -- cgit