aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-05-18 01:18:02 +0200
committerJay Berkenbilt <ejb@ql.org>2022-05-20 15:16:25 +0200
commit0fe8d4476205c97e402e555aac41a88e70e3e9b2 (patch)
tree87c9ee190bdfe4deeb8c517a3da6ab6b2a2230eb /include
parent63c7eefe9db8d8e87d07198355627af01cc1814d (diff)
downloadqpdf-0fe8d4476205c97e402e555aac41a88e70e3e9b2.tar.zst
Support stream data -- not tested
There are no automated tests yet, but committing work so far in preparation for some refactoring.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index f3ce4684..146015dc 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -998,7 +998,8 @@ class QPDF
class JSONReactor: public JSON::Reactor
{
public:
- JSONReactor(QPDF&, std::string const& filename, bool must_be_complete);
+ JSONReactor(
+ QPDF&, std::shared_ptr<InputSource> is, bool must_be_complete);
virtual ~JSONReactor() = default;
virtual void dictionaryStart() override;
virtual void arrayStart() override;
@@ -1033,7 +1034,7 @@ class QPDF
QPDFObjectHandle to_replace, QPDFObjectHandle replacement);
QPDF& pdf;
- std::string filename;
+ std::shared_ptr<InputSource> is;
bool must_be_complete;
bool errors;
bool parse_error;