X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Fdomain.h;h=0f16e54422417e0e48c9ca72876a56ab63740010;hb=f7ece52f5ba3633abf2515dcbc467ad6b80a447b;hp=c9cc39ebf2630dd1d4c3b453611465765e94fd44;hpb=4f0a5e7572a4257894b4bfede42c26d65152609e;p=catta diff --git a/avahi-common/domain.h b/avahi-common/domain.h index c9cc39e..0f16e54 100644 --- a/avahi-common/domain.h +++ b/avahi-common/domain.h @@ -1,5 +1,5 @@ #ifndef foodomainhfoo -#define foodimainhfoo +#define foodomainhfoo /* $Id$ */ @@ -24,13 +24,14 @@ /** \file domain.h Domain name handling functions */ - #include #include #include +#ifndef DOXYGEN_SHOULD_SKIP_THIS AVAHI_C_DECL_BEGIN +#endif /** Normalize a domain name into canonical form. This drops trailing * dots and removes useless backslash escapes. avahi_free() the @@ -68,8 +69,11 @@ int avahi_is_valid_host_name(const char *t); /** Return some kind of hash value for the domain, useful for using domains as hash table keys. */ unsigned avahi_domain_hash(const char *name); +/** Returns 1 if the the end labels of domain are eqal to suffix */ +int avahi_domain_ends_with(const char *domain, const char *suffix); - +#ifndef DOXYGEN_SHOULD_SKIP_THIS AVAHI_C_DECL_END +#endif #endif