diff options
author | Jay Berkenbilt <ejb@ql.org> | 2020-04-05 05:35:35 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2020-04-06 02:07:13 +0200 |
commit | 893d38b87e4ad6c6c55f49464f6b721c516ec878 (patch) | |
tree | 200289d57f269a394bc2a93f5978322d037f8628 /include/qpdf/QPDF.hh | |
parent | a5367003c3eaf7f21d369c1c6d11338564cf04f2 (diff) | |
download | qpdf-893d38b87e4ad6c6c55f49464f6b721c516ec878.tar.zst |
Allow propagation of errors and retry through StreamDataProvider
StreamDataProvider::provideStreamData now has a rich enough API for it
to effectively proxy to pipeStreamData.
Diffstat (limited to 'include/qpdf/QPDF.hh')
-rw-r--r-- | include/qpdf/QPDF.hh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 1455736c..720c1bc8 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -813,8 +813,9 @@ class QPDF virtual ~CopiedStreamDataProvider() { } - virtual void provideStreamData(int objid, int generation, - Pipeline* pipeline); + virtual bool provideStreamData( + int objid, int generation, Pipeline* pipeline, + bool suppress_warnings, bool will_retry) override; void registerForeignStream(QPDFObjGen const& local_og, QPDFObjectHandle foreign_stream); void registerForeignStream(QPDFObjGen const& local_og, @@ -909,9 +910,7 @@ class QPDF bool will_retry); bool pipeForeignStreamData( PointerHolder<ForeignStreamData>, - Pipeline*, - int encode_flags, - qpdf_stream_decode_level_e decode_level); + Pipeline*, bool suppress_warnings, bool will_retry); static bool pipeStreamData(PointerHolder<QPDF::EncryptionParameters> encp, PointerHolder<InputSource> file, QPDF& qpdf_for_warning, |