tests: check roundtrip() result in Test ctor

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: use wl_output userdata pointer

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: allow clean shutdown on partial init

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: shutdown_fd should be set to a default of -1

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: move eventfd init to init_control()

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: simplify sync_and_acquire_instance

* Moved all of the code to impl_sync_and_acquire_instance
* The macro still allows for ILM_FAILED return if instance is
  not correctly initialized or the wayland display broke.

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: check for valid wl_event_queue on init

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: check roundtrip results on init

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ivi-controller: Fix NULL deref.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
ivi-controller: Fix NULL deref in controller_screen_set_render_order.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
ivi-controller: Fix invalid cast of pointer.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
ivi-controller: Fix incorrect args for ivi_layout_screenSetRenderOrder.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
ivi-controller: Fix invalid read.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
ivi-controller: Fix incorrect args for ivi_layout_layerSetRenderOrder.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
ilmControl: Fix incorrect resource free.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>