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

◆ Callback

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

Constructor & Destructor Documentation

◆ AddInitCallback()

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

◆ ~AddInitCallback()

miral::AddInitCallback::~AddInitCallback ( )

Member Function Documentation

◆ operator()()

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

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

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.