mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-14 08:56:26 -05:00
Replace list_t with wl_list in wlr_wl_backend
Now wlr_backend->outputs is a list of wlr_wl_backend_output instead of wlr_output. Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
This commit is contained in:
parent
e1f196a3e9
commit
d3f0878d71
5 changed files with 19 additions and 39 deletions
|
|
@ -204,11 +204,7 @@ static struct wlr_input_device *allocate_device(struct wlr_wl_backend *backend,
|
|||
struct wlr_input_device *wlr_device = &wlr_wl_dev->wlr_input_device;
|
||||
wlr_input_device_init(wlr_device, type, &input_device_impl,
|
||||
name, vendor, product);
|
||||
if (list_add(backend->devices, wlr_device) == -1) {
|
||||
wlr_log_errno(L_ERROR, "Allocation failed");
|
||||
free(wlr_wl_dev);
|
||||
return NULL;
|
||||
}
|
||||
wl_list_insert(&backend->devices, &wlr_device->link);
|
||||
return wlr_device;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue