[Spice-devel,v3,06/17] sound: Rename workers to snd_channels

Submitted by Frediano Ziglio on Nov. 29, 2016, 2:57 p.m.

Details

Message ID d60964039d839baede621f9bae5bbd33aeba8782.1480431431.git-series.fziglio@redhat.com
State Accepted
Headers show
Series "Remove DummyChannel* objects" ( rev: 4 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Nov. 29, 2016, 2:57 p.m.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 server/sound.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Patch hide | download patch | download mbox

diff --git a/server/sound.c b/server/sound.c
index 6650094..737f8b9 100644
--- a/server/sound.c
+++ b/server/sound.c
@@ -176,7 +176,7 @@  typedef struct RecordChannelClient {
 } RecordChannelClient;
 
 /* A list of all Spice{Playback,Record}State objects */
-static SndChannel *workers;
+static SndChannel *snd_channels;
 
 static void snd_receive(SndChannelClient *client);
 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;
@@ -1599,7 +1599,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;