From 5a7bb3474eb10ec9dea8409466a14f72ead73e60 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 1 Feb 2022 04:16:58 -0500 Subject: generate_auto_job: generate overloaded config decls for optional For optional parameter/choices, generate an overloaded config method that takes no arguments. This makes it possible to convert from a bare argument to one that takes an optional parameter without breaking binary compatibility. --- include/qpdf/auto_job_c_main.hh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/qpdf/auto_job_c_main.hh b/include/qpdf/auto_job_c_main.hh index 42572a3d..c3b4f63c 100644 --- a/include/qpdf/auto_job_c_main.hh +++ b/include/qpdf/auto_job_c_main.hh @@ -44,8 +44,6 @@ QPDF_DLL Config* suppressRecovery(); QPDF_DLL Config* verbose(); QPDF_DLL Config* warningExit0(); QPDF_DLL Config* withImages(); -QPDF_DLL Config* collate(char const* parameter); -QPDF_DLL Config* splitPages(char const* parameter); QPDF_DLL Config* compressionLevel(char const* parameter); QPDF_DLL Config* copyEncryption(char const* parameter); QPDF_DLL Config* encryptionFilePassword(char const* parameter); @@ -65,6 +63,10 @@ QPDF_DLL Config* removeAttachment(char const* parameter); QPDF_DLL Config* rotate(char const* parameter); QPDF_DLL Config* showAttachment(char const* parameter); QPDF_DLL Config* showObject(char const* parameter); +QPDF_DLL Config* collate(char const* parameter); +QPDF_DLL Config* collate(); +QPDF_DLL Config* splitPages(char const* parameter); +QPDF_DLL Config* splitPages(); QPDF_DLL Config* compressStreams(char const* parameter); QPDF_DLL Config* decodeLevel(char const* parameter); QPDF_DLL Config* flattenAnnotations(char const* parameter); @@ -76,3 +78,4 @@ QPDF_DLL Config* passwordMode(char const* parameter); QPDF_DLL Config* removeUnreferencedResources(char const* parameter); QPDF_DLL Config* streamData(char const* parameter); QPDF_DLL Config* json(char const* parameter); +QPDF_DLL Config* json(); -- cgit v1.2.3-70-g09d2