{
wl_resource_destroy(resource);
}
+static void
+_pepper_devicemgr_cb_generate_axis(struct wl_client *client, struct wl_resource *resource, uint32_t type, wl_fixed_t value)
+{
+ tizen_input_device_manager_send_error(resource, TIZEN_INPUT_DEVICE_MANAGER_ERROR_NO_SYSTEM_RESOURCES);
+}
+
+static void
+_pepper_devicemgr_cb_set_touch_count(struct wl_client *client, struct wl_resource *resource, int32_t max_count)
+{
+ tizen_input_device_manager_send_error(resource, TIZEN_INPUT_DEVICE_MANAGER_ERROR_NO_SYSTEM_RESOURCES);
+}
static const struct tizen_input_device_manager_interface _pepper_devmgr_implementation = {
_pepper_devicemgr_cb_pointer_warp,
_pepper_devicemgr_cb_init_generator_with_name,
_pepper_devicemgr_cb_destroy,
+ _pepper_devicemgr_cb_generate_axis, //v4
+ _pepper_devicemgr_cb_set_touch_count,
};
/* tizen_devicemgr global object bind function */
PEPPER_CHECK(client, return, "Invalid client\n");
PEPPER_CHECK(pepper_devicemgr, return, "Invalid pepper_devicemgr_t\n");
- resource = wl_resource_create(client, &tizen_input_device_manager_interface, 2, id);
+ resource = wl_resource_create(client, &tizen_input_device_manager_interface, MIN(version,4), id);
if (!resource) {
PEPPER_ERROR("Failed to create resource ! (version :%d, id:%d)", version, id);
wl_client_post_no_memory(client);
pepper_list_init(&pepper_devicemgr->resources);
pepper_list_init(&pepper_devicemgr->blocked_keys);
- global = wl_global_create(display, &tizen_input_device_manager_interface, 2, pepper_devicemgr, _pepper_devicemgr_cb_bind);
+ global = wl_global_create(display, &tizen_input_device_manager_interface, 4, pepper_devicemgr, _pepper_devicemgr_cb_bind);
PEPPER_CHECK(global, goto failed, "Failed to create wl_global for tizen_devicemgr\n");
pepper_devicemgr->devicemgr = devicemgr_create(compositor, seat);