mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-15 06:59:43 -05:00
Use WLR_PRIVATE for private fields
This commit is contained in:
parent
e51ce333bc
commit
6006023a37
35 changed files with 262 additions and 249 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue