wayland: rename controlled_entity to controller_child
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Mon, 26 Jun 2017 14:34:55 +0000 (16:34 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000 (17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/wayland.cpp
src/wayland.hpp

index 1078a14..7be89c5 100644 (file)
@@ -324,7 +324,7 @@ layer::layer(uint32_t i, struct controller *c) : layer(i, 0, 0, c) {}
 
 layer::layer(uint32_t i, int32_t w, int32_t h, struct controller *c)
    : wayland_proxy(ivi_controller_layer_create(c->proxy, i, w, h)),
-     controlled_entity(c, i),
+     controller_child(c, i),
      dst_rect{},
      src_rect{},
      size{},
@@ -489,7 +489,7 @@ constexpr struct ivi_controller_surface_listener surface_listener = {
 
 surface::surface(uint32_t i, struct controller *c)
    : wayland_proxy(ivi_controller_surface_create(c->proxy, i)),
-     controlled_entity(c, i),
+     controller_child(c, i),
      dst_rect{},
      src_rect{},
      size{},
@@ -581,7 +581,7 @@ void controller::surface_content(uint32_t id, int32_t content_state) {
 //
 screen::screen(uint32_t i, struct controller *c,
                struct ivi_controller_screen *p)
-   : wayland_proxy(p), controlled_entity(c, i) {
+   : wayland_proxy(p), controller_child(c, i) {
    logdebug("genivi::screen @ %p id %u", p, i);
 }
 }
index 7ff1145..fbb9704 100644 (file)
@@ -124,12 +124,12 @@ struct rect {
 
 struct controller;
 
-struct controlled_entity {
+struct controller_child {
    struct controller *parent;
    uint32_t id;
 
-   controlled_entity(struct controller *c, uint32_t i) : parent(c), id(i) {}
-   virtual ~controlled_entity() {}
+   controller_child(struct controller *c, uint32_t i) : parent(c), id(i) {}
+   virtual ~controller_child() {}
 };
 
 //                  __
@@ -139,7 +139,7 @@ struct controlled_entity {
 // |___/\__,_|_|  |_|  \__,_|\___\___|
 //
 struct surface : public wayland_proxy<struct ivi_controller_surface>,
-                 controlled_entity {
+                 controller_child {
    struct rect dst_rect;
    struct rect src_rect;
    struct size size;
@@ -197,7 +197,7 @@ struct surface : public wayland_proxy<struct ivi_controller_surface>,
 // |_|\__,_|\__, |\___|_|
 //          |___/
 struct layer : public wayland_proxy<struct ivi_controller_layer>,
-               controlled_entity {
+               controller_child {
    struct rect dst_rect;
    struct rect src_rect;
    struct size size;
@@ -271,7 +271,7 @@ struct layer : public wayland_proxy<struct ivi_controller_layer>,
 // |___/\___|_|  \___|\___|_| |_|
 //
 struct screen : public wayland_proxy<struct ivi_controller_screen>,
-                controlled_entity {
+                controller_child {
    screen(uint32_t i, struct controller *c, struct ivi_controller_screen *p);
 
    void clear() { ivi_controller_screen_clear(this->proxy); }