26 #include <sys/types.h> 28 #include <avahi-common/cdecl.h> 41 #define AVAHI_DOMAIN_NAME_MAX 1014 44 #define AVAHI_LABEL_MAX 64 76 char *
avahi_escape_label(
const char* src,
size_t src_length,
char **ret_name,
size_t *ret_size);
116 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);
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)
Split a full service name into name, type and domain.
int avahi_is_valid_host_name(const char *t)
Return 1 when the specified string contains a valid non-FQDN host name (i.e.
int avahi_is_valid_service_type_generic(const char *t)
Return 1 when the specified string contains a valid generic DNS-SD service type (i.e.
int avahi_is_valid_service_subtype(const char *t)
Return 1 when the specified string contains a valid DNS-SD service subtype, 0 otherwise.
char * avahi_escape_label(const char *src, size_t src_length, char **ret_name, size_t *ret_size)
Escape the domain name in *src and write it to *ret_name.
const char * avahi_get_type_from_subtype(const char *t)
Return a pointer to the type section of a subtype i.e.
unsigned avahi_domain_hash(const char *name)
Return some kind of hash value for the domain, useful for using domains as hash table keys...
char * avahi_normalize_name_strdup(const char *s)
Normalize a domain name into canonical form.
int avahi_domain_equal(const char *a, const char *b)
Return 1 when the specified domain names are equal, 0 otherwise.
int avahi_is_valid_service_name(const char *t)
Return 1 when the specified string contains a valid DNS-SD service name, 0 otherwise.
int avahi_service_name_join(char *p, size_t size, const char *name, const char *type, const char *domain)
Construct a valid complete DNS-SD service name from a name, a type and a domain.
char * avahi_unescape_label(const char **name, char *dest, size_t size)
Read the first label from the textual domain name *name, unescape it and write it to dest...
int avahi_is_valid_fqdn(const char *t)
Return 1 when the specified string contains a valid FQDN host name (i.e.
char * avahi_normalize_name(const char *s, char *ret_s, size_t size)
Normalize a domain name into canonical form.
int avahi_is_valid_service_type_strict(const char *t)
Return 1 when the specified string contains a valid strict DNS-SD service type (i.e.
int avahi_is_valid_domain_name(const char *t)
Return 1 when the specified string contains a valid domain name, 0 otherwise.