diff options
author | Sjoerd Simons <sjoerd@luon.net> | 2009-05-20 12:41:50 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-05-20 12:41:50 +0200 |
commit | 9033b37589fcdf42d10025ea9e4d0dfc2c018bf4 (patch) | |
tree | 0f589f6d33cd73a15949f4bdae711a3dd56d921b /gio/gsocketclient.h | |
parent | 25800ed4a393f7edbea179aa86907079a58fd097 (diff) | |
download | glib-9033b37589fcdf42d10025ea9e4d0dfc2c018bf4.tar.gz |
Add helper functions for connecting to service (#583061)
Diffstat (limited to 'gio/gsocketclient.h')
-rw-r--r-- | gio/gsocketclient.h | 15 |
1 files changed, 15 insertions, 0 deletions
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___ */ |