17 #ifndef MIROIL_SET_COMPOSITOR_H
18 #define MIROIL_SET_COMPOSITOR_H
22 namespace mir {
class Server; }
23 namespace mir {
namespace graphics {
class Display; } }
24 namespace mir {
namespace compositor {
class DisplayListener; } }
33 using InitFunction = std::function<
void(
const std::shared_ptr<
mir::
graphics::Display>& display,
34 const std::shared_ptr<
Compositor> & compositor,
35 const std::shared_ptr<
mir::
compositor::DisplayListener>& displayListener)>;
37 using ConstructorFunction = std::function<std::shared_ptr<
Compositor>()>;
45 struct CompositorImpl;
47 std::weak_ptr<CompositorImpl> compositor_impl;
48 ConstructorFunction constructor_function;
49 InitFunction init_function;