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-2025
Canonical Ltd.
Generated on Sun Mar 2 17:34:18 UTC 2025
This documentation is licensed under the GPL version 2 or 3.