summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-02-09 13:43:56 +0100
committerm-holger <m-holger@kubitscheck.org>2023-02-18 09:33:08 +0100
commitdab27c9bb35c26e30e22f2e53299ee9566cadefd (patch)
treed9a0c711329c495442c26e0ca2697847cdf2feeb /include
parentfe74f28dc4f269e4bf944ae61d77874f81f95daf (diff)
downloadqpdf-dab27c9bb35c26e30e22f2e53299ee9566cadefd.tar.zst
Refactor setting of object descriptions in QPDF::JSONReactor
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index d6b32fe9..b227bb37 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -32,6 +32,7 @@
#include <memory>
#include <stdio.h>
#include <string>
+#include <variant>
#include <vector>
#include <qpdf/Buffer.hh>
@@ -50,6 +51,7 @@ class BitStream;
class BitWriter;
class QPDFLogger;
class QPDFParser;
+struct JSON_Descr;
class QPDF
{
@@ -1152,6 +1154,7 @@ class QPDF
QPDF& pdf;
std::shared_ptr<InputSource> is;
bool must_be_complete;
+ std::shared_ptr<std::variant<std::string, JSON_Descr>> descr;
bool errors;
bool parse_error;
bool saw_qpdf;