X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fcontroller_hooks.hpp;h=dd0a3aa95e0b7fa98d17eb37d4534f4a6ec70c21;hb=refs%2Ftags%2Fflounder%2F6.0.2;hp=f5265cae411b790e0a56f7e860fd38ef6ca88455;hpb=afd5c59cdfeeb142feb57afe7d3d47f5f83fda45;p=apps%2Fagl-service-windowmanager-2017.git diff --git a/src/controller_hooks.hpp b/src/controller_hooks.hpp index f5265ca..dd0a3aa 100644 --- a/src/controller_hooks.hpp +++ b/src/controller_hooks.hpp @@ -21,20 +21,21 @@ #include -namespace wm { +namespace wm +{ -struct App; +class WindowManager; -struct controller_hooks { - struct App *app; +struct controller_hooks +{ + WindowManager *wmgr; - void surface_created(uint32_t surface_id); - - void surface_removed(uint32_t surface_id); - void surface_visibility(uint32_t surface_id, uint32_t v); - void surface_destination_rectangle(uint32_t surface_id, uint32_t x, uint32_t y, uint32_t w, uint32_t h); + void surface_created(uint32_t surface_id); + void surface_removed(uint32_t surface_id); + void surface_visibility(uint32_t surface_id, uint32_t v); + void surface_destination_rectangle(uint32_t surface_id, uint32_t x, uint32_t y, uint32_t w, uint32_t h); }; -} // namespace wm +} // namespace wm -#endif // TMCAGLWM_CONTROLLER_HOOKS_HPP +#endif // TMCAGLWM_CONTROLLER_HOOKS_HPP