~ubuntu-branches/ubuntu/vivid/mir/vivid

« back to all changes in this revision

Viewing changes to src/server/default_configuration_options.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-02-04 14:49:07 UTC
  • mto: This revision was merged to the branch mainline in revision 61.
  • Revision ID: package-import@ubuntu.com-20140204144907-o3ruhix0ey26lchl
Tags: upstream-0.1.4+14.04.20140204
ImportĀ upstreamĀ versionĀ 0.1.4+14.04.20140204

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
 
19
19
#include "mir/default_configuration_options.h"
 
20
#include "mir/default_configuration.h"
20
21
#include "mir/abnormal_exit.h"
21
22
 
22
23
namespace
66
67
}
67
68
}
68
69
 
69
 
char const* const mir::ConfigurationOptions::server_socket_opt           = "file";
 
70
char const* const mir::ConfigurationOptions::server_socket_opt           = "file,f";
70
71
char const* const mir::ConfigurationOptions::no_server_socket_opt        = "no-file";
 
72
char const* const mir::ConfigurationOptions::enable_input_opt            = "enable-input,i";
71
73
char const* const mir::ConfigurationOptions::session_mediator_report_opt = "session-mediator-report";
72
74
char const* const mir::ConfigurationOptions::msg_processor_report_opt    = "msg-processor-report";
 
75
char const* const mir::ConfigurationOptions::compositor_report_opt       = "compositor-report";
73
76
char const* const mir::ConfigurationOptions::display_report_opt          = "display-report";
74
77
char const* const mir::ConfigurationOptions::legacy_input_report_opt     = "legacy-input-report";
75
78
char const* const mir::ConfigurationOptions::connector_report_opt        = "connector-report";
77
80
char const* const mir::ConfigurationOptions::input_report_opt            = "input-report";
78
81
char const* const mir::ConfigurationOptions::host_socket_opt             = "host-socket";
79
82
char const* const mir::ConfigurationOptions::standalone_opt              = "standalone";
80
 
char const* const mir::ConfigurationOptions::frontend_threads            = "ipc-thread-pool";
 
83
char const* const mir::ConfigurationOptions::frontend_threads_opt        = "ipc-thread-pool";
81
84
char const* const mir::ConfigurationOptions::name_opt                    = "name";
82
85
char const* const mir::ConfigurationOptions::offscreen_opt               = "offscreen";
83
86
 
113
116
            "Run mir in standalone mode. [bool:default=false]")
114
117
        (host_socket_opt, po::value<std::string>(),
115
118
            "Host socket filename. [string:default={$MIR_SOCKET,$XDG_RUNTIME_DIR/mir_socket}]")
116
 
        ("file,f", po::value<std::string>(),
117
 
            "Socket filename. [string:default=$XDG_RUNTIME_DIR/mir_socket]")
 
119
        (server_socket_opt, po::value<std::string>()->default_value(::mir::default_server_socket),
 
120
            "Socket filename.")
118
121
        (no_server_socket_opt, "Do not provide a socket filename for client connections")
119
 
        (platform_graphics_lib, po::value<std::string>(),
120
 
            "Library to use for platform graphics support [default=libmirplatformgraphics.so]")
121
 
        ("enable-input,i", po::value<bool>(),
122
 
            "Enable input. [bool:default=true]")
123
 
        (connector_report_opt, po::value<std::string>(),
124
 
            "How to handle the Connector report. [{log,off}:default=off]")
125
 
        (display_report_opt, po::value<std::string>(),
126
 
            "How to handle the Display report. [{log,off}:default=off]")
127
 
        (input_report_opt, po::value<std::string>(),
128
 
            "How to handle to Input report. [{log,lttng,off}:default=off]")
129
 
        (legacy_input_report_opt, po::value<std::string>(),
130
 
            "How to handle the Legacy Input report. [{log,off}:default=off]")
131
 
        (session_mediator_report_opt, po::value<std::string>(),
132
 
            "How to handle the SessionMediator report. [{log,off}:default=off]")
133
 
        (msg_processor_report_opt, po::value<std::string>(),
134
 
            "How to handle the MessageProcessor report. [{log,lttng,off}:default=off]")
135
 
        (scene_report_opt, po::value<std::string>(),
136
 
            "How to handle the scene report. [{log,off}:default=off]")
 
122
        (platform_graphics_lib, po::value<std::string>()->default_value(default_platform_graphics_lib),
 
123
            "Library to use for platform graphics support")
 
124
        (enable_input_opt, po::value<bool>()->default_value(enable_input_default),
 
125
            "Enable input.")
 
126
        (compositor_report_opt, po::value<std::string>()->default_value(off_opt_value),
 
127
            "Compositor reporting [{log,off}]")
 
128
        (connector_report_opt, po::value<std::string>()->default_value(off_opt_value),
 
129
            "How to handle the Connector report. [{log,off}]")
 
130
        (display_report_opt, po::value<std::string>()->default_value(off_opt_value),
 
131
            "How to handle the Display report. [{log,off}]")
 
132
        (input_report_opt, po::value<std::string>()->default_value(off_opt_value),
 
133
            "How to handle to Input report. [{log,lttng,off}]")
 
134
        (legacy_input_report_opt, po::value<std::string>()->default_value(off_opt_value),
 
135
            "How to handle the Legacy Input report. [{log,off}]")
 
136
        (session_mediator_report_opt, po::value<std::string>()->default_value(off_opt_value),
 
137
            "How to handle the SessionMediator report. [{log,off}]")
 
138
        (msg_processor_report_opt, po::value<std::string>()->default_value(off_opt_value),
 
139
            "How to handle the MessageProcessor report. [{log,lttng,off}]")
 
140
        (scene_report_opt, po::value<std::string>()->default_value(off_opt_value),
 
141
            "How to handle the scene report. [{log,off}]")
137
142
        (glog,
138
143
            "Use google::GLog for logging")
139
 
        (glog_stderrthreshold, po::value<int>(),
 
144
        (glog_stderrthreshold, po::value<int>()->default_value(glog_stderrthreshold_default),
140
145
            "Copy log messages at or above this level "
141
146
            "to stderr in addition to logfiles. The numbers "
142
147
            "of severity levels INFO, WARNING, ERROR, and "
143
 
            "FATAL are 0, 1, 2, and 3, respectively."
144
 
            " [int:default=2]")
145
 
        (glog_minloglevel, po::value<int>(),
 
148
            "FATAL are 0, 1, 2, and 3, respectively.")
 
149
        (glog_minloglevel, po::value<int>()->default_value(glog_minloglevel_default),
146
150
            "Log messages at or above this level. The numbers "
147
151
            "of severity levels INFO, WARNING, ERROR, and "
148
152
            "FATAL are 0, 1, 2, and 3, respectively."
149
153
            " [int:default=0]")
150
 
        (glog_log_dir, po::value<std::string>(),
 
154
        (glog_log_dir, po::value<std::string>()->default_value(glog_log_dir_default),
151
155
            "If specified, logfiles are written into this "
152
 
            "directory instead of the default logging directory."
153
 
            " [string:default=\"\"]")
154
 
        ("ipc-thread-pool", po::value<int>(),
 
156
            "directory instead of the default logging directory.")
 
157
        (frontend_threads_opt, po::value<int>()->default_value(default_ipc_threads),
155
158
            "threads in frontend thread pool.")
156
159
        (name_opt, po::value<std::string>(),
157
160
            "When nested, the name Mir uses when registering with the host.")
158
161
        (offscreen_opt,
159
162
            "Render to offscreen buffers instead of the real outputs.")
160
 
        ("vt", po::value<int>(),
161
 
            "VT to run on or 0 to use current. [int:default=0]");
 
163
        ("vt", po::value<int>()->default_value(0), // TODO this not applicable on all graphics platforms
 
164
            "VT to run on or 0 to use current.");
162
165
}
163
166
 
164
167
boost::program_options::options_description_easy_init mir::DefaultConfigurationOptions::add_options()