aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-03-01 23:34:47 +0100
committerJay Berkenbilt <ejb@ql.org>2021-03-03 23:05:49 +0100
commita15ec6967dd3312223a6ab7d4198655234e1a4bf (patch)
tree1b0ebb6a44c4c527d6594c9c79fe9b2bef065299 /include
parent1bb209a9bf5ade164cf1ba7c3b9399be70c45c24 (diff)
downloadqpdf-a15ec6967dd3312223a6ab7d4198655234e1a4bf.tar.zst
Enhancements to ParserCallbacks
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index 356eb4e2..e0635842 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -224,7 +224,16 @@ class QPDFObjectHandle
virtual void handleObject(
QPDFObjectHandle, size_t offset, size_t length);
- virtual void handleEOF() = 0;
+ // handleWarning is called if a warning was issued during the
+ // parsing of the most recent object. There's no good way to
+ // get information about the warning, but implementors can use
+ // this to become aware that there was some problem while
+ // parsing this content stream.
+ QPDF_DLL
+ virtual void handleWarning();
+
+ QPDF_DLL
+ virtual void handleEOF();
// Override this if you want to know the full size of the
// contents, possibly after concatenation of multiple streams.