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

AvahiStringList* avahi_string_list_find ( AvahiStringList l,
const char *  key 
)

Find the string list entry for the given DNS-SD TXT key

Definition at line 380 of file strlst.c.

References AvahiStringList::next, and AvahiStringList::text.

                                                                             {
    size_t n;
    
    assert(key);
    n = strlen(key);

    for (; l; l = l->next) {
        if (strcasecmp((char*) l->text, key) == 0)
            return l;

        if (strncasecmp((char*) l->text, key, n) == 0 && l->text[n] == '=')
            return l;
    }

    return NULL;
}


Generated by  Doxygen 1.6.0   Back to index