MirAL
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 <miral/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 © 2016 Canonical Ltd.
Generated on Fri Sep 30 13:21:55 UTC 2016