diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/qpdfjob-c.h | 10 |
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 |