[Spice-devel] [PATCH spice-server 05/18] sound: Rename workers to snd_channels

Frediano Ziglio fziglio at redhat.com
Wed Nov 23 18:07:19 UTC 2016


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/sound.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/server/sound.c b/server/sound.c
index 73af3c9..29e8df2 100644
--- a/server/sound.c
+++ b/server/sound.c
@@ -176,7 +176,7 @@ typedef struct RecordChannel {
 } RecordChannel;
 
 /* A list of all Spice{Playback,Record}State objects */
-static SndChannel *workers;
+static SndChannel *snd_channels;
 
 static void snd_receive(SndChannelClient *channel);
 static void snd_playback_start(SndChannel *worker);
@@ -1122,7 +1122,7 @@ SPICE_GNUC_VISIBLE void spice_server_playback_put_samples(SpicePlaybackInstance
 
 void snd_set_playback_latency(RedClient *client, uint32_t latency)
 {
-    SndChannel *now = workers;
+    SndChannel *now = snd_channels;
 
     for (; now; now = now->next) {
         uint32_t type;
@@ -1487,13 +1487,13 @@ static void snd_playback_migrate_channel_client(RedChannelClient *rcc)
 
 static void add_worker(SndChannel *worker)
 {
-    worker->next = workers;
-    workers = worker;
+    worker->next = snd_channels;
+    snd_channels = worker;
 }
 
 static void remove_worker(SndChannel *worker)
 {
-    SndChannel **now = &workers;
+    SndChannel **now = &snd_channels;
     while (*now) {
         if (*now == worker) {
             *now = worker->next;
@@ -1588,7 +1588,7 @@ void snd_detach_record(SpiceRecordInstance *sin)
 
 void snd_set_playback_compression(int on)
 {
-    SndChannel *now = workers;
+    SndChannel *now = snd_channels;
 
     for (; now; now = now->next) {
         uint32_t type;
-- 
2.7.4



More information about the Spice-devel mailing list