]> git.meshlink.io Git - catta/blobdiff - libavahi-core/domain-test.c
move the sources to libavahi-core/
[catta] / libavahi-core / domain-test.c
diff --git a/libavahi-core/domain-test.c b/libavahi-core/domain-test.c
new file mode 100644 (file)
index 0000000..f3deeac
--- /dev/null
@@ -0,0 +1,19 @@
+#include "util.h"
+
+int main(int argc, char *argv[]) {
+    gchar *s;
+    
+    g_message("host name: %s", s = avahi_get_host_name());
+    g_free(s);
+
+    g_message("%s", s = avahi_normalize_name("foo.foo."));
+    g_free(s);
+    
+    g_message("%s", s = avahi_normalize_name("foo.foo."));
+    g_free(s);
+
+
+    g_message("%i", avahi_domain_equal("\\aaa bbb\\.cccc\\\\.dee.fff.", "aaa\\ bbb\\.cccc\\\\.dee.fff"));
+
+    return 0;
+}