summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>2014-07-29 14:01:05 +0900
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>2014-08-21 10:08:13 +0900
commit9c326bd395b813babc7a4f569bb25f4d2a6411cb (patch)
tree38bab77ca081a86c7564b5a753be3fe3b9686337
parentad83f7cc9372bc869f4b73f9b55c76df54475c74 (diff)
downloadwayland-ivi-extension-9c326bd395b813babc7a4f569bb25f4d2a6411cb.tar.gz
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>
-rw-r--r--ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c2
-rw-r--r--protocol/ivi-controller.xml13
-rwxr-xr-xweston-ivi-shell/src/ivi-controller.c2
3 files changed, 16 insertions, 1 deletions
diff --git a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
index e47ee2c..037e170 100644
--- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
+++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
@@ -757,10 +757,12 @@ controller_surface_listener_content(void *data,
static void
controller_surface_listener_input_focus(void *data,
struct ivi_controller_surface *controller,
+ uint32_t device,
int32_t enabled)
{
(void)data;
(void)controller;
+ (void)device;
(void)enabled;
}
diff --git a/protocol/ivi-controller.xml b/protocol/ivi-controller.xml
index d8a0211..7dfe4fa 100644
--- a/protocol/ivi-controller.xml
+++ b/protocol/ivi-controller.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.2" encoding="UTF-8"?>
<protocol name="ivi_controller">
<copyright>
@@ -270,6 +270,7 @@
surface will have input focus.
If argument enabled is not 0, input focus for this surface is enabled.
</description>
+ <arg name="device" type="uint"/>
<arg name="enabled" type="int"/>
</request>
@@ -279,9 +280,19 @@
this surface has no longer the input focus. If enbaled is not 0, this surface
now has input focus enabled.
</description>
+ <arg name="device" type="uint"/>
<arg name="enabled" type="int"/>
</event>
+ <enum name="input_device">
+ <description summary="brief Identifier of different input device types. Can be used as a bitmask.">
+ </description>
+ <entry name="keyboard" value="0x1"/>
+ <entry name="pointer" value="0x2"/>
+ <entry name="touch" value="0x4"/>
+ <entry name="all" value="~0x0"/>
+ </enum>
+
</interface>
<interface name="ivi_controller_layer" version="1">
diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c
index 3adbe01..40c01f7 100755
--- a/weston-ivi-shell/src/ivi-controller.c
+++ b/weston-ivi-shell/src/ivi-controller.c
@@ -809,10 +809,12 @@ controller_surface_destroy(struct wl_client *client,
static void
controller_surface_set_input_focus(struct wl_client *client,
struct wl_resource *resource,
+ uint32_t device,
int32_t enabled)
{
(void)client;
(void)resource;
+ (void)device;
(void)enabled;
}