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;
Definition: internal_client.h:60
~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:72
Wrapper for running an internal Mir client at startup.
Definition: internal_client.h:40
void operator()(mir::Server &server)
StartupInternalClient(ClientObject const &client_object)
Definition: internal_client.h:47
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:24
Mir Abstraction Layer.
Definition: floating_window_manager.h:31