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

AvahiStringList* avahi_string_list_add_pair ( AvahiStringList l,
const char *  key,
const char *  value 
)

Add a new DNS-SD TXT key value pair to the string list. value may be NULL in case you want to specify a key without a value

Definition at line 395 of file strlst.c.

                                                                                                    {
    assert(key);

    if (value)
        return avahi_string_list_add_printf(l, "%s=%s", key, value);
    else
        return avahi_string_list_add(l, key);
}


Generated by  Doxygen 1.6.0   Back to index