aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorCalvin Lee <cyrus296@gmail.com>2017-08-11 20:23:53 +0200
committerCalvin Lee <cyrus296@gmail.com>2017-08-11 20:44:17 +0200
commita8c1e8ce69d1bea3afc8cb159337d6e67b98a6ae (patch)
tree528e4c84c0206431afed5c1c109fe037f2462943 /include/wlr
parent9f103ca71e798d9676e6bdc9c62ce8efdc9ad5d2 (diff)
Add user data to wlr_* structs
Resolves #68
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_input_device.h2
-rw-r--r--include/wlr/types/wlr_keyboard.h2
-rw-r--r--include/wlr/types/wlr_output.h2
-rw-r--r--include/wlr/types/wlr_pointer.h2
-rw-r--r--include/wlr/types/wlr_surface.h2
-rw-r--r--include/wlr/types/wlr_tablet_pad.h2
-rw-r--r--include/wlr/types/wlr_tablet_tool.h2
-rw-r--r--include/wlr/types/wlr_touch.h2
-rw-r--r--include/wlr/types/wlr_xdg_shell_v6.h4
9 files changed, 20 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_input_device.h b/include/wlr/types/wlr_input_device.h
index 57cbfaf9..17b26d45 100644
--- a/include/wlr/types/wlr_input_device.h
+++ b/include/wlr/types/wlr_input_device.h
@@ -41,6 +41,8 @@ struct wlr_input_device {
struct wlr_tablet_tool *tablet_tool;
struct wlr_tablet_pad *tablet_pad;
};
+
+ void *data;
};
#endif
diff --git a/include/wlr/types/wlr_keyboard.h b/include/wlr/types/wlr_keyboard.h
index 0d57b08b..bef064e5 100644
--- a/include/wlr/types/wlr_keyboard.h
+++ b/include/wlr/types/wlr_keyboard.h
@@ -20,6 +20,8 @@ struct wlr_keyboard {
struct {
struct wl_signal key;
} events;
+
+ void *data;
};
void wlr_keyboard_led_update(struct wlr_keyboard *keyboard, uint32_t leds);
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 02c336e7..e57217c2 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -51,6 +51,8 @@ struct wlr_output {
struct wlr_renderer *renderer;
struct wlr_texture *texture;
} cursor;
+
+ void *data;
};
void wlr_output_enable(struct wlr_output *output, bool enable);
diff --git a/include/wlr/types/wlr_pointer.h b/include/wlr/types/wlr_pointer.h
index e49fd061..139ba868 100644
--- a/include/wlr/types/wlr_pointer.h
+++ b/include/wlr/types/wlr_pointer.h
@@ -17,6 +17,8 @@ struct wlr_pointer {
struct wl_signal button;
struct wl_signal axis;
} events;
+
+ void *data;
};
struct wlr_event_pointer_motion {
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h
index 94b7ff1e..4b1a9ece 100644
--- a/include/wlr/types/wlr_surface.h
+++ b/include/wlr/types/wlr_surface.h
@@ -45,6 +45,8 @@ struct wlr_surface {
struct wl_listener compositor_listener; // destroy listener used by compositor
void *compositor_data;
+
+ void *data;
};
struct wlr_renderer;
diff --git a/include/wlr/types/wlr_tablet_pad.h b/include/wlr/types/wlr_tablet_pad.h
index fe88ec02..d2365086 100644
--- a/include/wlr/types/wlr_tablet_pad.h
+++ b/include/wlr/types/wlr_tablet_pad.h
@@ -22,6 +22,8 @@ struct wlr_tablet_pad {
struct wl_signal ring;
struct wl_signal strip;
} events;
+
+ void *data;
};
struct wlr_event_tablet_pad_button {
diff --git a/include/wlr/types/wlr_tablet_tool.h b/include/wlr/types/wlr_tablet_tool.h
index 6f121463..f99cd065 100644
--- a/include/wlr/types/wlr_tablet_tool.h
+++ b/include/wlr/types/wlr_tablet_tool.h
@@ -17,6 +17,8 @@ struct wlr_tablet_tool {
struct wl_signal tip;
struct wl_signal button;
} events;
+
+ void *data;
};
enum wlr_tablet_tool_axes {
diff --git a/include/wlr/types/wlr_touch.h b/include/wlr/types/wlr_touch.h
index e5398814..740d70f6 100644
--- a/include/wlr/types/wlr_touch.h
+++ b/include/wlr/types/wlr_touch.h
@@ -16,6 +16,8 @@ struct wlr_touch {
struct wl_signal motion;
struct wl_signal cancel;
} events;
+
+ void *data;
};
struct wlr_event_touch_down {
diff --git a/include/wlr/types/wlr_xdg_shell_v6.h b/include/wlr/types/wlr_xdg_shell_v6.h
index 3fe6189e..07380a96 100644
--- a/include/wlr/types/wlr_xdg_shell_v6.h
+++ b/include/wlr/types/wlr_xdg_shell_v6.h
@@ -6,12 +6,16 @@ struct wlr_xdg_shell_v6 {
struct wl_global *wl_global;
struct wl_list wl_resources;
struct wl_list surfaces;
+
+ void *data;
};
struct wlr_xdg_surface_v6 {
struct wl_resource *resource;
struct wl_resource *surface;
struct wl_list link;
+
+ void *data;
};
struct wlr_xdg_shell_v6 *wlr_xdg_shell_v6_init(struct wl_display *display);