aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-06-19 03:04:44 +0200
committerJay Berkenbilt <ejb@ql.org>2022-06-19 14:46:58 +0200
commitbb0ea2f8e7d8fffa575b291004e4426138c7bb1a (patch)
tree2000ab2d200aaa174432b53d93d59078156b61ac /include
parent87412eb05be3148e812310128f361f79922baad8 (diff)
downloadqpdf-bb0ea2f8e7d8fffa575b291004e4426138c7bb1a.tar.zst
Add qpdfjob_register_progress_reporter
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/qpdfjob-c.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/qpdf/qpdfjob-c.h b/include/qpdf/qpdfjob-c.h
index e15c8fa5..e404d580 100644
--- a/include/qpdf/qpdfjob-c.h
+++ b/include/qpdf/qpdfjob-c.h
@@ -125,6 +125,16 @@ extern "C" {
QPDF_DLL
int qpdfjob_run(qpdfjob_handle j);
+ /* Allow specification of a custom progress reporter. The progress
+ * reporter is only used if progress is otherwise requested (with
+ * the --progress option or "progress": "" in the JSON).
+ */
+ QPDF_DLL
+ void qpdfjob_register_progress_reporter(
+ qpdfjob_handle j,
+ void (*report_progress)(int percent, void* data),
+ void* data);
+
#ifdef __cplusplus
}
#endif