summaryrefslogtreecommitdiffstats
path: root/libavahi-core/domain-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavahi-core/domain-test.c')
-rw-r--r--libavahi-core/domain-test.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libavahi-core/domain-test.c b/libavahi-core/domain-test.c
new file mode 100644
index 0000000..f3deeac
--- /dev/null
+++ b/libavahi-core/domain-test.c
@@ -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;
+}