This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
|
#ifndef _LIBDECT_DECT_UTILS_H
|
|
#define _LIBDECT_DECT_UTILS_H
|
|
|
|
#define container_of(ptr, type, member) ({ \
|
|
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
|
|
(type *)( (char *)__mptr - offsetof(type,member) );})
|
|
|
|
#endif /* _LIBDECT_DECT_UTILS_H */
|