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

AvahiStringList* avahi_string_list_add_arbitrary ( AvahiStringList l,
const uint8_t *  text,
size_t  size 
)

Append an arbitrary length byte string to the list. Returns the new list start.

Definition at line 51 of file strlst.c.

References AvahiStringList::text.

                                                                                                      {
    AvahiStringList *n;

    assert(size == 0 || text);

    if (!(n = avahi_string_list_add_anonymous(l, size)))
        return NULL;

    if (size > 0)
        memcpy(n->text, text, size);

    return n;
}


Generated by  Doxygen 1.6.0   Back to index