Wrapper for running an internal Mir client at startup.
More...
#include <internal_client.h>
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_code | code implementing the internal client |
connection_notification | handler for registering the server-side application |
◆ 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 |
( |
| ) |
|
◆ operator()()
void miral::StartupInternalClient::operator() |
( |
mir::Server & |
server | ) |
|
The documentation for this class was generated from the following file:
Copyright © 2012-2022
Canonical Ltd.
Generated on Fri Aug 26 13:27:37 UTC 2022
This documentation is licensed under the GPL version 2 or 3.