From 9033b37589fcdf42d10025ea9e4d0dfc2c018bf4 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Wed, 20 May 2009 12:41:50 +0200 Subject: Add helper functions for connecting to service (#583061) --- gio/gsocketclient.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gio/gsocketclient.h') diff --git a/gio/gsocketclient.h b/gio/gsocketclient.h index b04f57be5..990d23bf8 100644 --- a/gio/gsocketclient.h +++ b/gio/gsocketclient.h @@ -92,6 +92,11 @@ GSocketConnection * g_socket_client_connect_to_host (GSocket int default_port, GCancellable *cancellable, GError **error); +GSocketConnection * g_socket_client_connect_to_service (GSocketClient *client, + const char *domain, + const char *service, + GCancellable *cancellable, + GError **error); void g_socket_client_connect_async (GSocketClient *client, GSocketConnectable *connectable, GCancellable *cancellable, @@ -110,6 +115,16 @@ GSocketConnection * g_socket_client_connect_to_host_finish (GSocket GAsyncResult *result, GError **error); +void g_socket_client_connect_to_service_async (GSocketClient *client, + const char *domain, + const char *service, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GSocketConnection * g_socket_client_connect_to_service_finish (GSocketClient *client, + GAsyncResult *result, + GError **error); + G_END_DECLS #endif /* __G_SOCKET_CLIENT_H___ */ -- cgit v1.2.1