test: adapt the change of policy request
[platform/core/uifw/libds-tizen.git] / include / libds-tizen / input_devicemgr.h
1 #ifndef LIBDS_TIZEN_INPUT_DEVICEMGR_H
2 #define LIBDS_TIZEN_INPUT_DEVICEMGR_H
3
4 #include <wayland-server.h>
5 #include <libds/surface.h>
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 struct ds_tizen_input_devicemgr;
12 struct ds_backend;
13 struct ds_seat;
14
15 struct ds_tizen_input_devicemgr_keymap_data
16 {
17     char *name;
18     int keycode;
19
20     struct wl_list link;
21 };
22
23 struct ds_tizen_input_devicemgr_event_pointer_warp
24 {
25     uint32_t time_msec;
26     struct ds_surface *surface;
27     double x, y;
28 };
29
30 struct ds_tizen_input_devicemgr *
31 ds_tizen_input_devicemgr_create(struct ds_backend *backend,
32         struct ds_seat *seat);
33
34 void
35 ds_tizen_input_devicemgr_add_destroy_listener(
36         struct ds_tizen_input_devicemgr *devicemgr,
37         struct wl_listener *listener);
38
39 void
40 ds_tizen_input_devicemgr_add_pointer_warp_listener(
41         struct ds_tizen_input_devicemgr *devicemgr,
42         struct wl_listener *listener);
43
44 bool
45 ds_tizen_input_devicemgr_set_keymap_list(
46         struct ds_tizen_input_devicemgr *devicemgr,
47         struct wl_list *list);
48
49 bool
50 ds_tizen_input_devicemgr_set_output_width_height(
51         struct ds_tizen_input_devicemgr *devicemgr,
52         uint32_t width, uint32_t height);
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif