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

AvahiRList* avahi_rlist_prepend ( AvahiRList r,
void *  data 
)

Prepend a new item to the beginning of the list and return the new beginning

Definition at line 29 of file rlist.c.

References AVAHI_LLIST_PREPEND, and AvahiRList::data.

                                                           {
    AvahiRList *n;

    if (!(n = avahi_new(AvahiRList, 1)))
        return NULL;

    n->data = data;

    AVAHI_LLIST_PREPEND(AvahiRList, rlist, r, n);
    return r;
}


Generated by  Doxygen 1.6.0   Back to index