From 8371548df70d1948bf04140c5f73eddd1edac12b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 25 Sep 2005 19:58:12 +0000 Subject: add new function avahi_domain_ends_with() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@605 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-common/domain.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'avahi-common/domain.h') diff --git a/avahi-common/domain.h b/avahi-common/domain.h index 88cf4d3..0464915 100644 --- a/avahi-common/domain.h +++ b/avahi-common/domain.h @@ -70,6 +70,9 @@ 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 -- cgit