Logo Search packages:      
Sourcecode: avahi version File versions  Download package

AvahiRList* avahi_rlist_remove ( AvahiRList r,
void *  data 

Remove the first occurence of the specified item from the list and return the new beginning

Definition at line 41 of file rlist.c.

References AVAHI_LLIST_REMOVE, and AvahiRList::data.

    AvahiRList *n;

    for (n = r; n; n = n->rlist_next)

        if (n->data == data) {
            AVAHI_LLIST_REMOVE(AvahiRList, rlist, r, n);

    return r;

Generated by  Doxygen 1.6.0   Back to index