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;