From 4e2d82b18f7e099cbce933b383c45efa40306161 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 24 Apr 2005 20:23:07 +0000 Subject: add support for dots and backslashes in domain names (required for DNS-SD) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@28 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- domain-test.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 domain-test.c (limited to 'domain-test.c') diff --git a/domain-test.c b/domain-test.c new file mode 100644 index 0000000..ab02943 --- /dev/null +++ b/domain-test.c @@ -0,0 +1,19 @@ +#include "util.h" + +int main(int argc, char *argv[]) { + gchar *s; + + g_message("host name: %s", s = flx_get_host_name()); + g_free(s); + + g_message("%s", s = flx_normalize_name("foo.foo.")); + g_free(s); + + g_message("%s", s = flx_normalize_name("foo.foo.")); + g_free(s); + + + g_message("%i", flx_domain_equal("\\aaa bbb\\.cccc\\\\.dee.fff.", "aaa\\ bbb\\.cccc\\\\.dee.fff")); + + return 0; +} -- cgit