summaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf-c.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/qpdf-c.cc')
-rw-r--r--libqpdf/qpdf-c.cc45
1 files changed, 1 insertions, 44 deletions
diff --git a/libqpdf/qpdf-c.cc b/libqpdf/qpdf-c.cc
index cb104c73..01987365 100644
--- a/libqpdf/qpdf-c.cc
+++ b/libqpdf/qpdf-c.cc
@@ -12,6 +12,7 @@
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QTC.hh>
#include <qpdf/QUtil.hh>
+#include <qpdf/qpdf-c_impl.hh>
#include <qpdf/qpdflogger-c_impl.hh>
#include <cstring>
@@ -20,50 +21,6 @@
#include <stdexcept>
#include <string>
-struct _qpdf_error
-{
- std::shared_ptr<QPDFExc> exc;
-};
-
-struct _qpdf_data
-{
- _qpdf_data();
- ~_qpdf_data() = default;
-
- std::shared_ptr<QPDF> qpdf;
- std::shared_ptr<QPDFWriter> qpdf_writer;
-
- std::shared_ptr<QPDFExc> error;
- _qpdf_error tmp_error;
- std::list<QPDFExc> warnings;
- std::string tmp_string;
-
- // Parameters for functions we call
- char const* filename; // or description
- char const* buffer;
- unsigned long long size;
- char const* password;
- bool write_memory;
- std::shared_ptr<Buffer> output_buffer;
-
- // QPDFObjectHandle support
- bool silence_errors;
- bool oh_error_occurred;
- std::map<qpdf_oh, std::shared_ptr<QPDFObjectHandle>> oh_cache;
- qpdf_oh next_oh;
- std::set<std::string> cur_iter_dict_keys;
- std::set<std::string>::const_iterator dict_iter;
- std::string cur_dict_key;
-};
-
-_qpdf_data::_qpdf_data() :
- write_memory(false),
- silence_errors(false),
- oh_error_occurred(false),
- next_oh(0)
-{
-}
-
// must set qpdf->filename and qpdf->password
static void
call_read(qpdf_data qpdf)