We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abe9057 commit 6130162Copy full SHA for 6130162
src/include/server/mir/server.h
@@ -78,7 +78,8 @@ enum class OptionType
78
integer,
79
string,
80
boolean,
81
- strings
+ strings,
82
+ real
83
};
84
85
/// Customise and run a Mir server.
src/server/server.cpp
@@ -741,5 +741,19 @@ void mir::Server::add_configuration_option(
741
self->set_add_configuration_options(option_adder);
742
}
743
break;
744
+
745
+ case OptionType::real:
746
+ {
747
+ auto const option_adder = [=](options::DefaultConfiguration& config)
748
749
+ existing(config);
750
751
+ config.add_options()
752
+ (option.c_str(), po::value<double>(), description.c_str());
753
+ };
754
755
+ self->set_add_configuration_options(option_adder);
756
+ }
757
+ break;
758
759
0 commit comments