X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fwayland.hpp;h=af3614275ad54eb6ca69d9f974e52741043f69d9;hb=626b0fc7a92da537f4914afcd3ff390f855785c4;hp=3b81e153c567577749a835f4e299c7547fcf988d;hpb=b166f3512f5e426e60a4ff610a9f07239ac18ea1;p=staging%2Fwindowmanager.git diff --git a/src/wayland.hpp b/src/wayland.hpp index 3b81e15..af36142 100644 --- a/src/wayland.hpp +++ b/src/wayland.hpp @@ -2,7 +2,7 @@ #define WM_WAYLAND_HPP #include "ivi-controller-client-protocol.h" - +#include "controller_hooks.hpp" #include "util.hpp" #include @@ -76,6 +76,11 @@ struct display { void flush(); int get_fd() const; int get_error(); + + // Lets just proxy this for the registry + inline void add_global_handler(char const *iface, registry::binder bind) { + this->r.add_global_handler(iface, bind); + } }; // _ _ @@ -258,6 +263,8 @@ struct controller : public wayland_proxy { size output_size; + wm::controller_hooks *chooks; + void add_proxy_to_id_mapping(struct ivi_controller_surface *p, uint32_t id); void remove_proxy_to_id_mapping(struct ivi_controller_surface *p); void add_proxy_to_id_mapping(struct ivi_controller_layer *p, uint32_t id);