mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
Move un-namespaced container_of into private header
This commit is contained in:
parent
bdd272f024
commit
7ec35d8e13
4 changed files with 6 additions and 4 deletions
|
|
@ -30,6 +30,10 @@
|
|||
|
||||
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
|
||||
|
||||
#define container_of(ptr, type, member) ({ \
|
||||
const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \
|
||||
(type *)( (char *)__mptr - offsetof(type,member) );})
|
||||
|
||||
#define WL_ZOMBIE_OBJECT ((void *) 2)
|
||||
|
||||
#define WL_MAP_SERVER_SIDE 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue