Merge pull request #69 from 4e554c4c/user_data

Add user data to wlr_* structs
This commit is contained in:
Drew DeVault 2017-08-11 14:59:15 -04:00 committed by GitHub
commit ce65a0c138
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);