mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 08:23:38 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user