aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QUtil.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-01-14 17:38:48 +0100
committerJay Berkenbilt <ejb@ql.org>2020-01-14 17:40:51 +0100
commita44b5a34a07b9f2905d419d5571fd53832c1f6c0 (patch)
treeb263fc2ca894f5f08fc8f71e14e1be74b2af42ad /include/qpdf/QUtil.hh
parentab4061f1ee4e71a586f60bd65b9be4c96bf0bed8 (diff)
downloadqpdf-a44b5a34a07b9f2905d419d5571fd53832c1f6c0.tar.zst
Pull wmain -> main code from qpdf.cc into QUtil.cc
Diffstat (limited to 'include/qpdf/QUtil.hh')
-rw-r--r--include/qpdf/QUtil.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh
index da136342..ef701cbb 100644
--- a/include/qpdf/QUtil.hh
+++ b/include/qpdf/QUtil.hh
@@ -362,6 +362,13 @@ namespace QUtil
// command-line tool. May throw std::runtime_error.
QPDF_DLL
std::vector<int> parse_numrange(char const* range, int max);
+
+ // Take an argv array consisting of wchar_t, as when wmain is
+ // invoked, convert all UTF-16 encoded strings to UTF-8, and call
+ // another main.
+ QPDF_DLL
+ int call_main_from_wmain(int argc, wchar_t* argv[],
+ std::function<int(int, char*[])> realmain);
};
#endif // QUTIL_HH