tls: Make g_tls_{client|server}_connection_new() return a GIOStream

The main use case for these objects is as an IO stream, so it makes
sense to return them that way from the start.
This commit is contained in:
Benjamin Otte
2010-12-07 16:06:38 +01:00
parent c59ba60fbe
commit 07fd29c323
7 changed files with 16 additions and 14 deletions

View File

@@ -78,7 +78,7 @@ g_tls_server_connection_default_init (GTlsServerConnectionInterface *iface)
*
* Since: 2.28
*/
GTlsServerConnection *
GIOStream *
g_tls_server_connection_new (GIOStream *base_io_stream,
GTlsCertificate *certificate,
GError **error)
@@ -92,5 +92,5 @@ g_tls_server_connection_new (GIOStream *base_io_stream,
"base-io-stream", base_io_stream,
"certificate", certificate,
NULL);
return G_TLS_SERVER_CONNECTION (conn);
return G_IO_STREAM (conn);
}