blob: f3deeac2b3b8443682ecc84bba53b028ac62959e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
}
|