Starting on TcpClient, some formatting fixes
[cascardo/gnio.git] / gnio / ginetsocketaddress.h
index d4740ed..fc44062 100644 (file)
@@ -1,9 +1,32 @@
+/* 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_INET_SOCKET_ADDRESS_H
 #define G_INET_SOCKET_ADDRESS_H
 
 #include <glib-object.h>
-#include <gsocketaddress.h>
-#include <ginetaddress.h>
+#include "gsocketaddress.h"
+#include "ginetaddress.h"
 
 G_BEGIN_DECLS
 
@@ -18,27 +41,26 @@ typedef struct _GInetSocketAddress        GInetSocketAddress;
 typedef struct _GInetSocketAddressClass   GInetSocketAddressClass;
 typedef struct _GInetSocketAddressPrivate GInetSocketAddressPrivate;
 
-struct _GInetSocketAddress {
-    
-    GSocketAddress parent;
+struct _GInetSocketAddress
+{
+  GSocketAddress parent;
 
-    GInetSocketAddressPrivate *priv;
+  GInetSocketAddressPrivate *priv;
 };
 
-struct _GInetSocketAddressClass {
-    
-    GSocketAddressClass parent_class;
+struct _GInetSocketAddressClass
+{
+  GSocketAddressClass parent_class;
 };
 
+GType                g_inet_socket_address_get_type    (void) G_GNUC_CONST;
 
-GType               g_inet_socket_address_get_type    (void) G_GNUC_CONST;
-
-GInetSocketAddress *g_inet_socket_address_new         (GInetAddress *address, guint16 port);
-
+GInetSocketAddress * g_inet_socket_address_new         (GInetAddress *address,
+                                                        guint16       port);
 
-GInetAddress       *g_inet_socket_address_get_address (GInetSocketAddress *sockaddr);
-guint16             g_inet_socket_address_get_port    (GInetSocketAddress *sockaddr);
+GInetAddress *       g_inet_socket_address_get_address (GInetSocketAddress *sockaddr);
 
+guint16              g_inet_socket_address_get_port    (GInetSocketAddress *sockaddr);
 
 G_END_DECLS