[PATCH v8 10/11] sound: Make clear active and client_active are boolean

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 server/sound.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/server/sound.c b/server/sound.c
index 78a65f6..d26e922 100644
--- a/server/sound.c
+++ b/server/sound.c
@@ -93,8 +93,8 @@ GType snd_channel_client_get_type(void) G_GNUC_CONST;
 struct SndChannelClient {
     RedChannelClient parent;
 
-    int active;
-    int client_active;
+    gboolean active;
+    gboolean client_active;
 
     uint32_t command;
 
@@ -176,7 +176,7 @@ struct SndChannel {
     SndChannelClient *connection; /* Only one client is supported */
     SndChannel *next; /* For the global SndChannel list */
 
-    int active;
+    gboolean active;
     SpiceVolumeState volume;
     uint32_t frequency;
 };
@@ -858,7 +858,7 @@ static void snd_playback_start(SndChannel *channel)
 {
     SndChannelClient *client = channel->connection;
 
-    channel->active = 1;
+    channel->active = TRUE;
     if (!client)
         return;
     spice_assert(!client->active);
@@ -881,7 +881,7 @@ SPICE_GNUC_VISIBLE void spice_server_playback_stop(SpicePlaybackInstance *sin)
 {
     SndChannelClient *client = sin->st->channel.connection;
 
-    sin->st->channel.active = 0;
+    sin->st->channel.active = FALSE;
     if (!client)
         return;
     PlaybackChannelClient *playback_client = PLAYBACK_CHANNEL_CLIENT(client);
@@ -1151,7 +1151,7 @@ static void snd_record_start(SndChannel *channel)
 {
     SndChannelClient *client = channel->connection;
 
-    channel->active = 1;
+    channel->active = TRUE;
     if (!client) {
         return;
     }
@@ -1177,7 +1177,7 @@ SPICE_GNUC_VISIBLE void spice_server_record_stop(SpiceRecordInstance *sin)
 {
     SndChannelClient *client = sin->st->channel.connection;
 
-    sin->st->channel.active = 0;
+    sin->st->channel.active = FALSE;
     if (!client)
         return;
     spice_assert(client->active);
-- 
git-series 0.9.1
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]