Mir
Public Types | Public Member Functions | List of all members
miral::AddInitCallback Class Reference

Add a callback to be invoked when the server has been initialized, but before it starts. If multiple callbacks are added they will be invoked in the sequence added. More...

#include <add_init_callback.h>

Public Types

using Callback = std::function< void()>
 

Public Member Functions

 AddInitCallback (Callback const &callback)
 
 ~AddInitCallback ()
 
void operator() (mir::Server &server) const
 

Detailed Description

Add a callback to be invoked when the server has been initialized, but before it starts. If multiple callbacks are added they will be invoked in the sequence added.

Member Typedef Documentation

using miral::AddInitCallback::Callback = std::function<void()>

Constructor & Destructor Documentation

miral::AddInitCallback::AddInitCallback ( Callback const &  callback)
explicit
miral::AddInitCallback::~AddInitCallback ( )

Member Function Documentation

void miral::AddInitCallback::operator() ( mir::Server &  server) const

The documentation for this class was generated from the following file:

Copyright © 2012-2022 Canonical Ltd.
Generated on Thu Jan 27 21:45:55 UTC 2022
This documentation is licensed under the GPL version 2 or 3.