Name the parameters more appropriately.

This commit is contained in:
Wim Taymans 2009-01-19 19:34:29 +01:00 committed by Wim Taymans
parent 243b524f51
commit 8d2ace0026
2 changed files with 7 additions and 8 deletions

View file

@ -721,7 +721,7 @@ receive_failed:
/* called when we need to accept a new request from a client */ /* called when we need to accept a new request from a client */
static gboolean static gboolean
client_accept (GstRTSPClient *client, GIOChannel *source) client_accept (GstRTSPClient *client, GIOChannel *channel)
{ {
/* a new client connected. */ /* a new client connected. */
int server_sock_fd; int server_sock_fd;
@ -730,7 +730,7 @@ client_accept (GstRTSPClient *client, GIOChannel *source)
conn = client->connection; conn = client->connection;
server_sock_fd = g_io_channel_unix_get_fd (source); server_sock_fd = g_io_channel_unix_get_fd (channel);
address_len = sizeof (client->address); address_len = sizeof (client->address);
memset (&client->address, 0, address_len); memset (&client->address, 0, address_len);
@ -802,10 +802,9 @@ gst_rtsp_client_get_session_pool (GstRTSPClient *client)
/** /**
* gst_rtsp_client_attach: * gst_rtsp_client_attach:
* @client: a #GstRTSPClient * @client: a #GstRTSPClient
* @context: a #GMainContext * @channel: a #GIOChannel
* *
* Attaches @client to @context. When the mainloop for @context is run, the * Accept a new connection for @client on the socket in @source.
* client will be dispatched.
* *
* This function should be called when the client properties and urls are fully * This function should be called when the client properties and urls are fully
* configured and the client is ready to start. * configured and the client is ready to start.
@ -813,11 +812,11 @@ gst_rtsp_client_get_session_pool (GstRTSPClient *client)
* Returns: %TRUE if the client could be accepted. * Returns: %TRUE if the client could be accepted.
*/ */
gboolean gboolean
gst_rtsp_client_accept (GstRTSPClient *client, GIOChannel *source) gst_rtsp_client_accept (GstRTSPClient *client, GIOChannel *channel)
{ {
gst_rtsp_connection_create (NULL, &client->connection); gst_rtsp_connection_create (NULL, &client->connection);
if (!client_accept (client, source)) if (!client_accept (client, channel))
goto accept_failed; goto accept_failed;
/* client accepted, spawn a thread for the client */ /* client accepted, spawn a thread for the client */

View file

@ -80,7 +80,7 @@ void gst_rtsp_client_set_session_pool (GstRTSPClient *client,
GstRTSPSessionPool * gst_rtsp_client_get_session_pool (GstRTSPClient *client); GstRTSPSessionPool * gst_rtsp_client_get_session_pool (GstRTSPClient *client);
gboolean gst_rtsp_client_accept (GstRTSPClient *client, gboolean gst_rtsp_client_accept (GstRTSPClient *client,
GIOChannel *source); GIOChannel *channel);
G_END_DECLS G_END_DECLS