From 249bddc5abe70fc6281303c76ce0d059e09d4976 Mon Sep 17 00:00:00 2001 From: Michal Ratajsky Date: Thu, 20 Nov 2014 04:42:17 +0100 Subject: pulse: Rename a function to a better name --- backends/pulse/pulse-backend.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/backends/pulse/pulse-backend.c b/backends/pulse/pulse-backend.c index fc14c8d..84296c3 100644 --- a/backends/pulse/pulse-backend.c +++ b/backends/pulse/pulse-backend.c @@ -191,7 +191,7 @@ static void on_connection_ext_stream_info (PulseConnection const pa_ext_stream_restore_info *info, PulseBackend *pulse); -static gboolean connect_source_reconnect (PulseBackend *pulse); +static gboolean source_try_connect (PulseBackend *pulse); static void check_pending_sink (PulseBackend *pulse, PulseStream *stream); @@ -644,7 +644,7 @@ on_connection_state_notify (PulseConnection *connection, source = g_timeout_source_new (200); g_source_set_callback (source, - (GSourceFunc) connect_source_reconnect, + (GSourceFunc) source_try_connect, pulse, NULL); pulse->priv->connect_tag = @@ -1158,11 +1158,10 @@ on_connection_ext_stream_loaded (PulseConnection *connection, PulseBackend *puls } } -// XXX rename static gboolean -connect_source_reconnect (PulseBackend *pulse) +source_try_connect (PulseBackend *pulse) { - /* When the connect call succeeds, return FALSE to remove the idle source + /* When the connect call succeeds, return FALSE to remove the source * and wait for the connection state notifications, otherwise this function * will be called again */ if (pulse_connection_connect (pulse->priv->connection, TRUE) == TRUE) { -- cgit v1.2.1