19 #ifndef MIRAL_RUNNER_H 20 #define MIRAL_RUNNER_H 23 #include <initializer_list> 26 namespace mir {
class Server; }
41 MirRunner(
int argc,
char const* argv[],
char const* config_file);
61 auto run_with(std::initializer_list<std::function<
void(::mir::Server&)>> options) -> int;
70 std::unique_ptr<Self>
const self;
74 #endif //MIRAL_RUNNER_H AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time...
Definition: blob.h:26
MirRunner(int argc, char const *argv[])
void stop()
Tell the Mir server to exit.
Runner for applying initialization options to Mir.
Definition: runner.h:37
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...
auto run_with(std::initializer_list< std::function< void(::mir::Server &)>> options) -> int
Apply the supplied initialization options and run the Mir server.
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...
void set_exception_handler(std::function< void()> const &handler)
Set a handler for exceptions caught in run_with(). run_with() invokes handler() in catch (...
Mir Abstraction Layer.
Definition: add_init_callback.h:26