17 #ifndef MIRAL_INTERNAL_CLIENT_H
18 #define MIRAL_INTERNAL_CLIENT_H
24 namespace mir {
class Server;
namespace scene {
class Session; }}
41 std::function<
void(struct ::wl_display* display)> client_code,
42 std::function<
void(std::weak_ptr<mir::scene::Session>
const session)> connect_notification);
44 template <
typename ClientObject>
54 std::shared_ptr<Self> internal_client;
66 std::function<
void(struct ::wl_display* display)>
const& wayland_fd,
67 std::function<
void(std::weak_ptr<mir::scene::Session>
const session)>
const& connect_notification)
const;
69 template <
typename ClientObject>
70 void launch(ClientObject& client_object)
const
73 [&](struct ::wl_display* display) { client_object(display); },
74 [&](std::weak_ptr<mir::scene::Session>
const session) { client_object(session); });
79 std::shared_ptr<Self>
self;
Definition: internal_client.h:58
~InternalClientLauncher()
void operator()(mir::Server &server)
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
void launch(ClientObject &client_object) const
Definition: internal_client.h:70
Wrapper for running an internal Mir client at startup.
Definition: internal_client.h:38
void operator()(mir::Server &server)
StartupInternalClient(ClientObject const &client_object)
Definition: internal_client.h:45
StartupInternalClient(std::function< void(struct ::wl_display *display)> client_code, std::function< void(std::weak_ptr< mir::scene::Session > const session)> connect_notification)
Definition: splash_session.h:22
Mir Abstraction Layer.
Definition: floating_window_manager.h:29