mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-16 04:48:07 +02:00
shared: add nm_c_list_contains_entry() helper
This commit is contained in:
parent
011258a086
commit
422e326cba
1 changed files with 7 additions and 0 deletions
|
|
@ -26,6 +26,13 @@
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
#define nm_c_list_contains_entry(list, what, member) \
|
||||
({ \
|
||||
typeof (what) _what = (what); \
|
||||
\
|
||||
_what && c_list_contains (list, &_what->member); \
|
||||
})
|
||||
|
||||
typedef struct {
|
||||
CList lst;
|
||||
void *data;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue