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

Wrapper for running an internal Mir client at startup. More...

#include <internal_client.h>

Public Member Functions

 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 >
 StartupInternalClient (ClientObject const &client_object)
 
 ~StartupInternalClient ()
 
void operator() (mir::Server &server)
 

Detailed Description

Wrapper for running an internal Mir client at startup.

Note
client_code will be executed on its own thread, this must exit
connection_notification will be called on a worker thread and must not block
Parameters
client_codecode implementing the internal client
connection_notificationhandler for registering the server-side application

Constructor & Destructor Documentation

◆ StartupInternalClient() [1/2]

miral::StartupInternalClient::StartupInternalClient ( std::function< void(struct ::wl_display *display)>  client_code,
std::function< void(std::weak_ptr< mir::scene::Session > const session)>  connect_notification 
)
explicit

◆ StartupInternalClient() [2/2]

template<typename ClientObject >
miral::StartupInternalClient::StartupInternalClient ( ClientObject const &  client_object)
inlineexplicit

◆ ~StartupInternalClient()

miral::StartupInternalClient::~StartupInternalClient ( )

Member Function Documentation

◆ operator()()

void miral::StartupInternalClient::operator() ( mir::Server &  server)

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

Copyright © 2012-2021 Canonical Ltd.
Generated on Wed Oct 6 15:21:46 UTC 2021
This documentation is licensed under the GPL version 2 or 3.