TcpClient seems to be working for sync connects, but connect()
[cascardo/gnio.git] / gnio / gresolver.h
index 33e935e..9484511 100644 (file)
@@ -1,10 +1,33 @@
+/* GNIO - GLib Network Layer of GIO
+ *
+ * Copyright (C) 2008 Christian Kellner, Samuel Cormier-Iijima
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General
+ * Public License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * Authors: Christian Kellner <gicmo@gnome.org>
+ *          Samuel Cormier-Iijima <sciyoshi@gmail.com>
+ */
+
 #ifndef G_RESOLVER_H
 #define G_RESOLVER_H
 
 #include <glib-object.h>
 #include <gio/gio.h>
 
-#include "ginetaddress.h"
+#include <gnio/ginetaddress.h>
 
 G_BEGIN_DECLS
 
@@ -28,7 +51,9 @@ struct _GResolverClass
   GObjectClass parent_class;
 };
 
-GType          g_resolver_get_type (void) G_GNUC_CONST;
+GType          g_resolver_get_type                  (void) G_GNUC_CONST;
+
+GResolver *    g_resolver_new                       (void);
 
 GInetAddress * g_resolver_resolve                   (GResolver     *resolver,
                                                      const char    *host,