shared: add nm_c_list_contains_entry() helper

This commit is contained in:
Thomas Haller 2018-03-30 17:42:32 +02:00
parent 011258a086
commit 422e326cba

View file

@ -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;