17 #ifndef MIRAL_RUNNER_H
18 #define MIRAL_RUNNER_H
23 #include <initializer_list>
26 namespace mir {
class Server; }
61 auto run_with(std::initializer_list<std::function<
void(::mir::Server&)>> options) -> int;
92 std::unique_ptr<Self> const self;
Runner for applying initialization options to Mir.
Definition: runner.h:38
MirRunner(int argc, char const *argv[])
void add_stop_callback(std::function< void()> const &stop_callback)
Add a callback to be invoked when the server is about to stop, If multiple callbacks are added they w...
void add_start_callback(std::function< void()> const &start_callback)
Add a callback to be invoked when the server has started, If multiple callbacks are added they will b...
auto config_file() const -> std::string
Name of the .config file. The .config file is located via the XDG Base Directory Specification: $XDG_...
auto x11_display() const -> mir::optional_value< std::string >
Get the X11 socket name (if any) usable as a $DISPLAY value.
MirRunner(int argc, char const *argv[], char const *config_file)
void stop()
Tell the Mir server to exit.
void set_exception_handler(std::function< void()> const &handler)
Set a handler for exceptions caught in run_with(). run_with() invokes handler() in catch (....
auto wayland_display() const -> mir::optional_value< std::string >
Get the Wayland endpoint name (if any) usable as a $WAYLAND_DISPLAY value.
auto run_with(std::initializer_list< std::function< void(::mir::Server &)>> options) -> int
Apply the supplied initialization options and run the Mir server.
auto display_config_file() const -> std::string
Name of the .display configuration file. The .display file is located via the XDG Base Directory Spec...
Definition: splash_session.h:22
Mir Abstraction Layer.
Definition: floating_window_manager.h:29