Starting on TcpClient, some formatting fixes
[cascardo/gnio.git] / gnio / ginetaddress.c
index 4ee20de..3890727 100644 (file)
@@ -34,7 +34,7 @@
  * 
  **/
 
-G_DEFINE_ABSTRACT_TYPE (GInetAddress, g_inet_address, G_TYPE_OBJECT);
+G_DEFINE_ABSTRACT_TYPE (GInetAddress, g_inet_address, G_TYPE_INITIALLY_UNOWNED);
 
 enum
 {
@@ -52,7 +52,10 @@ enum
 };
 
 static void
-g_inet_address_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
+g_inet_address_get_property (GObject    *object,
+                             guint       prop_id,
+                             GValue     *value,
+                             GParamSpec *pspec)
 {
   GInetAddress *address = G_INET_ADDRESS (object);
 
@@ -76,7 +79,10 @@ g_inet_address_get_property (GObject *object, guint prop_id, GValue *value, GPar
 }
 
 static void
-g_inet_address_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
+g_inet_address_set_property (GObject      *object,
+                             guint         prop_id,
+                             const GValue *value,
+                             GParamSpec   *pspec)
 {
   GInetAddress *address G_GNUC_UNUSED = G_INET_ADDRESS (object);
 
@@ -172,6 +178,14 @@ g_inet_address_init (GInetAddress *address)
 
 }
 
+gchar *
+g_inet_address_to_string (GInetAddress *address)
+{
+  g_return_val_if_fail (G_IS_INET_ADDRESS (address), NULL);
+
+  return G_INET_ADDRESS_GET_CLASS (address)->to_string (address);
+}
+
 /* ******************************************* */
 /* Getters for properties */