summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-05-15 09:41:41 (GMT)
committerAlexander Larsson <alexl@redhat.com>2009-05-15 09:41:41 (GMT)
commita5a7b78f95e96072fdfbf274e89d811532c40408 (patch)
tree312ca4ca87646977409783c535c9e32da8d2f689
parent048931823c9e35bb31286f4113e5aed2caa9dae8 (diff)
downloadgnio-a5a7b78f95e96072fdfbf274e89d811532c40408.tar.gz
gnio-a5a7b78f95e96072fdfbf274e89d811532c40408.tar.xz
Add g_socket_client_connect_to_host_finish
Previously we re-used g_socket_client_connect_finish which works but doesn't follow the standard pattern.
-rw-r--r--gio/gsocketclient.c8
-rw-r--r--gio/gsocketclient.h5
2 files changed, 12 insertions, 1 deletions
diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c
index ea2d381..1f6bc83 100644
--- a/gio/gsocketclient.c
+++ b/gio/gsocketclient.c
@@ -672,3 +672,11 @@ g_socket_client_connect_finish (GSocketClient *client,
return g_object_ref (g_simple_async_result_get_op_res_gpointer (simple));
}
+
+GSocketConnection *
+g_socket_client_connect_to_host_finish (GSocketClient *client,
+ GAsyncResult *result,
+ GError **error)
+{
+ return g_socket_client_connect_finish (client, result, error);
+}
diff --git a/gio/gsocketclient.h b/gio/gsocketclient.h
index aba1132..98540a4 100644
--- a/gio/gsocketclient.h
+++ b/gio/gsocketclient.h
@@ -83,13 +83,16 @@ void g_socket_client_connect_async (GSocket
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
+GSocketConnection * g_socket_client_connect_finish (GSocketClient *client,
+ GAsyncResult *result,
+ GError **error);
void g_socket_client_connect_to_host_async (GSocketClient *client,
const char *hostname,
int port,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-GSocketConnection * g_socket_client_connect_finish (GSocketClient *client,
+GSocketConnection * g_socket_client_connect_to_host_finish (GSocketClient *client,
GAsyncResult *result,
GError **error);