From 03ca1e173f4ad480a817d542780035532a4efb0f Mon Sep 17 00:00:00 2001 From: Shaun Verch Date: Wed, 14 Aug 2013 11:54:01 -0400 Subject: SERVER-8510 Use new option parser in mongod and mongos and move parsing into MONGO_INITIALIZERS --- src/mongo/util/ntservice.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/mongo/util/ntservice.h') diff --git a/src/mongo/util/ntservice.h b/src/mongo/util/ntservice.h index 68d32037144..405515d0ac5 100644 --- a/src/mongo/util/ntservice.h +++ b/src/mongo/util/ntservice.h @@ -24,7 +24,6 @@ #ifdef _WIN32 -#include #include #include @@ -32,6 +31,13 @@ namespace mongo { + namespace optionenvironment { + class OptionSection; + class Environment; + } // namespace optionenvironment + + namespace moe = mongo::optionenvironment; + namespace ntservice { struct NtServiceDefaultStrings { const wchar_t* serviceName; @@ -55,7 +61,7 @@ namespace ntservice { */ void configureService( ServiceCallback serviceCallback, - const boost::program_options::variables_map& params, + const moe::Environment& params, const NtServiceDefaultStrings& defaultStrings, const std::vector& disallowedOptions, const std::vector& argv); -- cgit v1.2.1