Go to the documentation of this file.00001 #ifndef foodomainhfoo
00002 #define foodomainhfoo
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00027 #include <inttypes.h>
00028 #include <sys/types.h>
00029
00030 #include <avahi-common/cdecl.h>
00031
00032 AVAHI_C_DECL_BEGIN
00033
00043 #define AVAHI_DOMAIN_NAME_MAX 1014
00044
00046 #define AVAHI_LABEL_MAX 64
00047
00052 char *avahi_normalize_name(const char *s, char *ret_s, size_t size);
00053
00057 char *avahi_normalize_name_strdup(const char *s);
00058
00064 int avahi_domain_equal(const char *a, const char *b);
00065
00067 unsigned avahi_domain_hash(const char *name);
00068
00075 char *avahi_unescape_label(const char **name, char *dest, size_t size);
00076
00078 char *avahi_escape_label(const char* src, size_t src_length, char **ret_name, size_t *ret_size);
00079
00087 int avahi_is_valid_service_type_generic(const char *t);
00088
00092 int avahi_is_valid_service_type_strict(const char *t);
00093
00096 int avahi_is_valid_service_subtype(const char *t);
00097
00099 int avahi_is_valid_domain_name(const char *t);
00100
00102 int avahi_is_valid_service_name(const char *t);
00103
00105 int avahi_is_valid_host_name(const char *t);
00106
00108 int avahi_is_valid_fqdn(const char *t);
00109
00115 int avahi_service_name_join(char *p, size_t size, const char *name, const char *type, const char *domain);
00116
00118 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);
00119
00125 const char *avahi_get_type_from_subtype(const char *t);
00126
00129 AVAHI_C_DECL_END
00130
00131 #endif