[gnio] Add g_socket_client_connect_to_host_finish
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnio] Add g_socket_client_connect_to_host_finish
- Date: Fri, 15 May 2009 13:57:17 -0400 (EDT)
commit a5a7b78f95e96072fdfbf274e89d811532c40408
Author: Alexander Larsson <alexl redhat com>
Date: Fri May 15 11:41:41 2009 +0200
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.
---
gio/gsocketclient.c | 8 ++++++++
gio/gsocketclient.h | 5 ++++-
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]