openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/dbus-broker/19-r0/dbus-broker-19/subprojects/c-list/src/c-list.h
static inline _Bool c_list_contains(const CList* list, const CList* what)
{
    const CList* iter;

    c_list_for_each(iter, list) if (what == iter) return 1;

    return what == list;
}
/**
 * c_list_contains() - check whether an entry is linked in a certain list
 * @list:               list to operate on
 * @what:               entry to look for
 *
 * This checks whether @what is linked into @list. This requires a linear
 * search through the list, as such runs in O(n). Note that the list-head is
 * considered part of the list, and hence this returns true if @what equals
 * @list.
 *
 * Note that this function is meant for debugging purposes, and consistency
 * checks. You should always be aware whether your objects are linked in a
 * specific list.
 *
 * Return: True if @what is in @list, false otherwise.
 */
check whether an entry is linked in a certain list
@list:               list to operate on
@what:               entry to look for

This checks whether @what is linked into @list. This requires a linear
search through the list, as such runs in O(n). Note that the list-head is
considered part of the list, and hence this returns true if @what equals
@list.

Note that this function is meant for debugging purposes, and consistency
checks. You should always be aware whether your objects are linked in a
specific list.

True if @what is in @list, false otherwise.
check whether an entry is linked in a certain list @list : list to operate on @what : entry to look for This checks whether @what is linked into @list . This requires a linear search through the list as such runs in O ( n ) . Note that the list - head is considered part of the list and hence this returns true if @what equals @list . Note that this function is meant for debugging purposes and consistency checks . You should always be aware whether your objects are linked in a specific list . True if @what is in @list false otherwise .
static inline _Bool c_list_contains(const CList* list, const CList* what)
{
    const CList* iter;
    c_list_for_each(iter, list) if (what == iter) return 1;
    return what == list;
}
static inline _Bool c_list_contains ( const CList * list , const CList * what ) { const CList * iter ; c_list_for_each ( iter , list ) if ( what == iter ) return 1 ; return what == list ; }
c_list_contains() - check whether an entry is linked in a certain list
 @list:               list to operate on
 @what:               entry to look for
c_list_contains () - check whether an entry is linked in a certain list @list : list to operate on @what : entry to look for