Go to the documentation of this file.
19 #ifndef MIRAL_INTERNAL_CLIENT_H
20 #define MIRAL_INTERNAL_CLIENT_H
26 namespace mir {
class Server;
namespace scene {
class Session; }}
43 std::function<
void(struct ::wl_display* display)> client_code,
44 std::function<
void(std::weak_ptr<mir::scene::Session>
const session)> connect_notification);
46 template <
typename ClientObject>
56 std::shared_ptr<Self> internal_client;
68 std::function<
void(struct ::wl_display* display)>
const& wayland_fd,
69 std::function<
void(std::weak_ptr<mir::scene::Session>
const session)>
const& connect_notification)
const;
71 template <
typename ClientObject>
72 void launch(ClientObject& client_object)
const
75 [&](struct ::wl_display* display) { client_object(display); },
76 [&](std::weak_ptr<mir::scene::Session>
const session) { client_object(session); });
81 std::shared_ptr<Self>
self;
85 #endif //MIRAL_INTERNAL_CLIENT_H
Mir Abstraction Layer.
Definition: floating_window_manager.h:31
~InternalClientLauncher()
void operator()(mir::Server &server)
StartupInternalClient(std::function< void(struct ::wl_display *display)> client_code, std::function< void(std::weak_ptr< mir::scene::Session > const session)> connect_notification)
void launch(std::function< void(struct ::wl_display *display)> const &wayland_fd, std::function< void(std::weak_ptr< mir::scene::Session > const session)> const &connect_notification) const
StartupInternalClient(ClientObject const &client_object)
Definition: internal_client.h:47
Wrapper for running an internal Mir client at startup.
Definition: internal_client.h:40
Definition: splash_session.h:24
void operator()(mir::Server &server)
Definition: internal_client.h:60
void launch(ClientObject &client_object) const
Definition: internal_client.h:72
Copyright © 2012-2021
Canonical Ltd.
Generated on Thu Jun 24 19:55:23 UTC 2021
This documentation is licensed under the GPL version 2 or 3.