Use WLR_PRIVATE for private fields

This commit is contained in:
Kirill Primak 2024-10-05 11:37:22 +03:00
parent e51ce333bc
commit 6006023a37
35 changed files with 262 additions and 249 deletions

View file

@ -12,8 +12,9 @@
#include <wayland-server-core.h>
struct wlr_addon_set {
// private state
struct wl_list addons;
struct {
struct wl_list addons;
} WLR_PRIVATE;
};
struct wlr_addon;
@ -26,9 +27,11 @@ struct wlr_addon_interface {
struct wlr_addon {
const struct wlr_addon_interface *impl;
// private state
const void *owner;
struct wl_list link;
struct {
const void *owner;
struct wl_list link;
} WLR_PRIVATE;
};
void wlr_addon_set_init(struct wlr_addon_set *set);