wayland: initalize all controll members
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Fri, 23 Jun 2017 10:40:55 +0000 (12:40 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000 (17:24 +0200)
* Also; added output_size - for now.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/wayland.cpp
src/wayland.hpp

index 52b2371..a512979 100644 (file)
@@ -194,7 +194,12 @@ constexpr struct ivi_controller_listener listener = {
 
 controller::controller(struct wl_registry *r, uint32_t name, uint32_t version)
    : wayland_proxy(
-        wl_registry_bind(r, name, &ivi_controller_interface, version)) {
+        wl_registry_bind(r, name, &ivi_controller_interface, version))
+   , surfaces{}
+   , layers{}
+   , screens{}
+   , pending{}
+   , output_size{} {
    ivi_controller_add_listener(this->proxy, &listener, this);
 }
 
index cb4c8ed..a98c36d 100644 (file)
@@ -284,6 +284,8 @@ struct controller : public wayland_proxy<struct ivi_controller> {
       name_task_pair;
    std::vector<name_task_pair> pending;
 
+   size output_size;
+
    void add_task(char const *name,
                  std::function<void(struct controller *)> &&f) {
       this->pending.emplace_back(std::make_pair(name, f));