summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-11-20 04:42:17 +0100
committerMichal Ratajsky <[email protected]>2014-11-20 04:42:17 +0100
commit249bddc5abe70fc6281303c76ce0d059e09d4976 (patch)
tree0f2763704cf581653005d5325bd9f6ff4392ce0b
parent14ae6e0d97fc73fbc516442ed37862523189596b (diff)
downloadlibmatemixer-249bddc5abe70fc6281303c76ce0d059e09d4976.tar.bz2
libmatemixer-249bddc5abe70fc6281303c76ce0d059e09d4976.tar.xz
pulse: Rename a function to a better name
-rw-r--r--backends/pulse/pulse-backend.c9
1 files 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) {