ivi-controller: Fix NULL deref.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
ivi-controller: Fix NULL deref in controller_screen_set_render_order
and invalid cast of pointer.

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

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

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

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

Even if LayerManagerControl create a layer, it is destoryed when it
exits.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Protocol, ilmControl, add weston-ivi-shell: Add device type to argument of input_focus functions.

A parameter, device, is missing from protocol. It is needed for API spec.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
weston-ivi-shell: Move screenshot function from IVI-Shell to ivi-controller.

This is because ivi-shell shall not have dependency on other components
as much as possible. Now it depends on CAIRO.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
weston-ivi-shell: Apply the latest headers of ivi-layout from upstream.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
weston-ivi-shell: add calling ivi_layout_surfaceSetTransition to set transition type.

ivi-layout have new feture to control type of transion when property of
surface happens. ivi-layout proposes the above api:
ivi_layout_surfaceSetTransition to change the type.
This api allows user to set type of transition per surface when
commitchange happens. Type of transtion is defined in enum
ivi_layout_transition_type.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
weston-ivi-shell: Send content_state event from ivi-controller.

When content of ivi_surface is changes, e.g. map wl_surface or remove
it, content_state is notified.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
weston-ivi-shell: allow to create ivi_controller_surface with ID even if application doesn't map ID to wl_surface yet.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
ilmControl: allow to set callback of surfaceAddNotification even if application doen't map ID to wl_surface.

When application map ID to wl_surface by ivi_application.createSurface,
content_state is notified with content_available.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
ilmCommon: Add flags of content state to ILM_NOTIFICATION.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
ilmControl: Send content event when ivi-surface is created or destroyed.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
ilmControl: Return REMOVED immediatly when notification is set even if wl_surface is not set to ivi_surface.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
weston-ivi-shell: fix a memory leak of surface and resource.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
ilmControl: when called from AddNotification, notify of surface creation.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
weston-ivi-shell: Fix illegal surface free.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
cmake: Add gl libraries.

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