Class StartupInternalClient

Class Documentation

class StartupInternalClient

Wrapper for running an internal Mir client at startup.

Param client_code:

code implementing the internal client

Param connection_notification:

handler for registering the server-side application

Note

client_code will be executed on its own thread, this must exit

Note

connection_notification will be called on a worker thread and must not block

Public Functions

explicit StartupInternalClient(std::function<void(struct ::wl_display *display)> client_code, std::function<void(std::weak_ptr<mir::scene::Session> const session)> connect_notification)
template<typename ClientObject>
inline explicit StartupInternalClient(ClientObject const &client_object)
~StartupInternalClient()
void operator()(mir::Server &server)