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

const char* avahi_dns_class_to_string ( uint16_t  clazz  ) 

Return a textual representation of the specified DNS class. The returned pointer points to a read only internal string.

Definition at line 185 of file rr.c.

References AVAHI_DNS_CACHE_FLUSH, AVAHI_DNS_CLASS_ANY, and AVAHI_DNS_CLASS_IN.

                                                      {
    if (class & AVAHI_DNS_CACHE_FLUSH)
        return "FLUSH";

    switch (class) {
        case AVAHI_DNS_CLASS_IN:
            return "IN";
        case AVAHI_DNS_CLASS_ANY:
            return "ANY";
        default:
            return NULL;
    }
}


Generated by  Doxygen 1.6.0   Back to index