Add user data to wlr_* structs

Resolves #68
This commit is contained in:
Calvin Lee 2017-08-11 20:23:53 +02:00
parent 9f103ca71e
commit a8c1e8ce69
9 changed files with 20 additions and 0 deletions

View file

@ -41,6 +41,8 @@ struct wlr_input_device {
struct wlr_tablet_tool *tablet_tool;
struct wlr_tablet_pad *tablet_pad;
};
void *data;
};
#endif

View file

@ -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);

View file

@ -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);

View file

@ -17,6 +17,8 @@ struct wlr_pointer {
struct wl_signal button;
struct wl_signal axis;
} events;
void *data;
};
struct wlr_event_pointer_motion {

View file

@ -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;

View file

@ -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 {

View file

@ -17,6 +17,8 @@ struct wlr_tablet_tool {
struct wl_signal tip;
struct wl_signal button;
} events;
void *data;
};
enum wlr_tablet_tool_axes {

View file

@ -16,6 +16,8 @@ struct wlr_touch {
struct wl_signal motion;
struct wl_signal cancel;
} events;
void *data;
};
struct wlr_event_touch_down {

View file

@ -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);