Class AddInitCallback¶
Defined in File add_init_callback.h
Class Documentation¶
-
class AddInitCallback¶
Add a callback to be invoked when the server has been initialized, but before it starts.
Callbacks are processed in order. This callback is appended after any existing callback.
Public Types
-
using Callback = std::function<void()>¶
Public Functions
-
explicit AddInitCallback(Callback const &callback)¶
Constructs a new init callback using the provided
callback
function.- Parameters:
callback – The callback that is executed when the server has initialized but is not yet running.
-
~AddInitCallback()¶
-
void operator()(mir::Server &server) const¶
-
using Callback = std::function<void()>¶