Logo Search packages:      
Sourcecode: avahi version File versions

domain.h File Reference


Detailed Description

Domain name handling functions

Definition in file domain.h.

#include <inttypes.h>
#include <sys/types.h>
#include <avahi-common/cdecl.h>

Go to the source code of this file.

Defines

#define AVAHI_DOMAIN_NAME_MAX   1014
#define AVAHI_LABEL_MAX   64

Functions

Comparison


int avahi_domain_equal (const char *a, const char *b)
unsigned avahi_domain_hash (const char *name)
Escaping


char * avahi_escape_label (const char *src, size_t src_length, char **ret_name, size_t *ret_size)
char * avahi_unescape_label (const char **name, char *dest, size_t size)
DNS-SD Subtype handling


const char * avahi_get_type_from_subtype (const char *t)
Validity Checks


int avahi_is_valid_domain_name (const char *t)
int avahi_is_valid_fqdn (const char *t)
int avahi_is_valid_host_name (const char *t)
int avahi_is_valid_service_name (const char *t)
int avahi_is_valid_service_subtype (const char *t)
int avahi_is_valid_service_type_generic (const char *t)
int avahi_is_valid_service_type_strict (const char *t)
Normalization


char * avahi_normalize_name (const char *s, char *ret_s, size_t size)
char * avahi_normalize_name_strdup (const char *s)
DNS-SD service name handling


int avahi_service_name_join (char *p, size_t size, const char *name, const char *type, const char *domain)
int avahi_service_name_split (const char *p, char *name, size_t name_size, char *type, size_t type_size, char *domain, size_t domain_size)


Generated by  Doxygen 1.6.0   Back to index