diff options
Diffstat (limited to 'libqpdf/qpdf/JSONHandler.hh')
-rw-r--r-- | libqpdf/qpdf/JSONHandler.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libqpdf/qpdf/JSONHandler.hh b/libqpdf/qpdf/JSONHandler.hh index 9b2a0b33..1c53e32d 100644 --- a/libqpdf/qpdf/JSONHandler.hh +++ b/libqpdf/qpdf/JSONHandler.hh @@ -45,6 +45,9 @@ class JSONHandler void addArrayHandlers( json_handler_t start_fn, void_handler_t end_fn, std::shared_ptr<JSONHandler> item_handlers); + // If no handlers is called, the fallback handler will be used to try to handle the item. + void addFallbackHandler(std::shared_ptr<JSONHandler>); + // Apply handlers recursively to a JSON object. void handle(std::string const& path, JSON j); |