client: expose connection

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=697546
This commit is contained in:
David Svensson Fors 2013-04-15 12:17:34 +02:00 committed by Wim Taymans
parent 3ba1342906
commit 825d6f0b51
2 changed files with 18 additions and 0 deletions

View file

@ -2054,6 +2054,23 @@ gst_rtsp_client_get_uri (GstRTSPClient * client)
return result;
}
/**
* gst_rtsp_client_get_connection:
* @client: a #GstRTSPClient
*
* Get the #GstRTSPConnection of @client.
*
* Returns: (transfer none): the #GstRTSPConnection of @client.
* The connection object returned remains valid until the client is freed.
*/
GstRTSPConnection *
gst_rtsp_client_get_connection (GstRTSPClient * client)
{
g_return_val_if_fail (GST_IS_RTSP_CLIENT (client), NULL);
return client->priv->connection;
}
/**
* gst_rtsp_client_set_send_func:
* @client: a #GstRTSPClient

View file

@ -138,6 +138,7 @@ void gst_rtsp_client_set_auth (GstRTSPClient *client,
GstRTSPAuth * gst_rtsp_client_get_auth (GstRTSPClient *client);
GstRTSPUrl * gst_rtsp_client_get_uri (GstRTSPClient *client);
GstRTSPConnection * gst_rtsp_client_get_connection (GstRTSPClient *client);
void gst_rtsp_client_set_send_func (GstRTSPClient *client,
GstRTSPClientSendFunc func,