diff options
| author | Drew DeVault <sir@cmpwn.com> | 2017-08-11 14:59:15 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-11 14:59:15 -0400 | 
| commit | ce65a0c13821279e6f090c315e7a8a331fecc35b (patch) | |
| tree | 34a3af4f9d9ed7a34960461f7197c8fb71dadd7a | |
| parent | 3f1b94c019aa523082cffeab4de0851b84a2f74a (diff) | |
| parent | a8c1e8ce69d1bea3afc8cb159337d6e67b98a6ae (diff) | |
| download | wlroots-ce65a0c13821279e6f090c315e7a8a331fecc35b.tar.xz | |
Merge pull request #69 from 4e554c4c/user_data
Add user data to wlr_* structs
| -rw-r--r-- | include/wlr/types/wlr_input_device.h | 2 | ||||
| -rw-r--r-- | include/wlr/types/wlr_keyboard.h | 2 | ||||
| -rw-r--r-- | include/wlr/types/wlr_output.h | 2 | ||||
| -rw-r--r-- | include/wlr/types/wlr_pointer.h | 2 | ||||
| -rw-r--r-- | include/wlr/types/wlr_surface.h | 2 | ||||
| -rw-r--r-- | include/wlr/types/wlr_tablet_pad.h | 2 | ||||
| -rw-r--r-- | include/wlr/types/wlr_tablet_tool.h | 2 | ||||
| -rw-r--r-- | include/wlr/types/wlr_touch.h | 2 | ||||
| -rw-r--r-- | include/wlr/types/wlr_xdg_shell_v6.h | 4 | 
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 aa2b78ec..60d8b2f6 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); | 
