(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 12 Apr 2010 11:38:17 +0000 (11:38 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 12 Apr 2010 11:38:17 +0000 (11:38 +0000)
src/include/gnunet_resolver_service.h

index f8b1e79c7043459054ee84d962817439f5047255..4c9a9f67e26cba58f14249a546772d068b2f4fe9 100644 (file)
@@ -111,6 +111,19 @@ GNUNET_RESOLVER_hostname_resolve (struct GNUNET_SCHEDULER_Handle *sched,
 typedef void (*GNUNET_RESOLVER_HostnameCallback) (void *cls,
                                                   const char *hostname);
 
+/**
+ * Get local hostname
+ *
+ * @param sched scheduler to use
+ * @param cfg configuration to use
+ * @param callback function to call with addresses
+ * @param cls closure for callback
+ */
+void
+GNUNET_RESOLVER_local_hostname_get (struct GNUNET_SCHEDULER_Handle *sched,
+                                    const struct GNUNET_CONFIGURATION_Handle *cfg,
+                                    GNUNET_RESOLVER_HostnameCallback callback,
+                                    void *cls);
 
 /**
  * Perform a reverse DNS lookup.