summaryrefslogtreecommitdiff
path: root/gio/gsocketaddress.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-10-04 15:24:24 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-10-13 15:42:14 +0100
commit128c413261f60c044aca14895ca2c5d2574d791e (patch)
treee67ccf89a633ff741e6d096902fb1586f2f0dc7d /gio/gsocketaddress.c
parent4e631d2e5fd2d7d27b1ca5e2edd6a4d95c83566e (diff)
gsocketconnectable: Add a to_string() virtual method
Add string serialisation functions for GNetworkAddress, GSocketAddress, GUnixSocketAddress, GInetSocketAddress, GNetworkService and GSocketConnectable. These are intended for use in debug output, not for serialisation in network or disc protocols. They are implemented as a new virtual method on GSocketConnectable: g_socket_connectable_to_string(). GInetSocketAddress and GUnixSocketAddress now implement GSocketConnectable directly to implement to_string(). Previously they implemented it via their abstract parent class, GSocketAddress. https://bugzilla.gnome.org/show_bug.cgi?id=737116
Diffstat (limited to 'gio/gsocketaddress.c')
-rw-r--r--gio/gsocketaddress.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/gsocketaddress.c b/gio/gsocketaddress.c
index d0caf3385..cefd9e0fc 100644
--- a/gio/gsocketaddress.c
+++ b/gio/gsocketaddress.c
@@ -129,6 +129,7 @@ g_socket_address_connectable_iface_init (GSocketConnectableIface *connectable_if
{
connectable_iface->enumerate = g_socket_address_connectable_enumerate;
connectable_iface->proxy_enumerate = g_socket_address_connectable_proxy_enumerate;
+ /* to_string() is implemented by subclasses */
}
static void