summaryrefslogtreecommitdiff
path: root/ivi-shell/ivi-layout-private.h
diff options
context:
space:
mode:
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2015-06-22 15:31:16 +0900
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2015-06-23 15:57:15 +0300
commit4b601e152ec3d2d140f8748a066704957b85757a (patch)
tree8d6840a8b2fe73ac8422c0242e0da31ee69f832c /ivi-shell/ivi-layout-private.h
parent680984234a4462a3b1949559d406eefb06e2bd3b (diff)
ivi-shell: bugfix, add ref_count to ivi_layout_layer
if a controller calls ivi_layout_layer_create_with_demenstion with a ID which is already created before, the API returns exist ivi_layer. However addtionally, it shall count up ref count to destroy ivi_layer when ref count is 0. The previous code will destroy ivi_layer immediately even if the other code still refers ivi_layer. Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'ivi-shell/ivi-layout-private.h')
-rw-r--r--ivi-shell/ivi-layout-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ivi-shell/ivi-layout-private.h b/ivi-shell/ivi-layout-private.h
index 8b619630..cf2db7d5 100644
--- a/ivi-shell/ivi-layout-private.h
+++ b/ivi-shell/ivi-layout-private.h
@@ -88,6 +88,8 @@ struct ivi_layout_layer {
struct wl_list surface_list;
struct wl_list link;
} order;
+
+ int32_t ref_count;
};
struct ivi_layout {