]> git.meshlink.io Git - catta/blobdiff - avahi-core/resolve-host-name.c
implement new main loop abstraction layer
[catta] / avahi-core / resolve-host-name.c
index c18722d19dc59b1b09a8749e12b34025387bfc91..50fbcf838f4eb0adbca0712a0b9a55ce93e764b0 100644 (file)
@@ -23,8 +23,9 @@
 #include <config.h>
 #endif
 
+#include <avahi-common/domain.h>
+#include <avahi-common/timeval.h>
 #include "browse.h"
-#include "util.h"
 
 struct AvahiHostNameResolver {
     AvahiServer *server;
@@ -107,7 +108,7 @@ static void time_event_callback(AvahiTimeEvent *e, void *userdata) {
 AvahiHostNameResolver *avahi_host_name_resolver_new(AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const gchar *host_name, guchar aprotocol, AvahiHostNameResolverCallback callback, gpointer userdata) {
     AvahiHostNameResolver *r;
     AvahiKey *k;
-    GTimeVal tv;
+    struct timeval tv;
     
     g_assert(server);
     g_assert(host_name);