[PATCH spice-server 20/22] reds: use bool instead of gboolean

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

 



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

diff --git a/server/reds.c b/server/reds.c
index f8cf1d0..e4e2ace 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -78,7 +78,7 @@
 #define REDS_MAX_STAT_NODES 100
 
 static void reds_client_monitors_config(RedsState *reds, VDAgentMonitorsConfig *monitors_config);
-static gboolean reds_use_client_monitors_config(RedsState *reds);
+static bool reds_use_client_monitors_config(RedsState *reds);
 static void reds_set_video_codecs(RedsState *reds, GArray *video_codecs);
 
 static SpiceTimer *adapter_timer_add(const SpiceCoreInterfaceInternal *iface, SpiceTimerFunc func, void *opaque)
@@ -3503,18 +3503,18 @@ typedef struct {
     const char *name;
 } EnumNames;
 
-static gboolean get_name_index(const EnumNames names[], const char *name, uint32_t *index)
+static bool get_name_index(const EnumNames names[], const char *name, uint32_t *index)
 {
     if (name) {
         int i;
         for (i = 0; names[i].name; i++) {
             if (strcmp(name, names[i].name) == 0) {
                 *index = i;
-                return TRUE;
+                return true;
             }
         }
     }
-    return FALSE;
+    return false;
 }
 
 static const EnumNames renderer_names[] = {
@@ -3522,16 +3522,16 @@ static const EnumNames renderer_names[] = {
     {RED_RENDERER_INVALID, NULL},
 };
 
-static gboolean reds_add_renderer(RedsState *reds, const char *name)
+static bool reds_add_renderer(RedsState *reds, const char *name)
 {
     uint32_t index;
 
     if (reds->config->renderers->len == RED_RENDERER_LAST ||
         !get_name_index(renderer_names, name, &index)) {
-        return FALSE;
+        return false;
     }
     g_array_append_val(reds->config->renderers, renderer_names[index].id);
-    return TRUE;
+    return true;
 }
 
 static const EnumNames video_encoder_names[] = {
@@ -4347,20 +4347,20 @@ void reds_update_client_mouse_allowed(RedsState *reds)
     }
 }
 
-static gboolean reds_use_client_monitors_config(RedsState *reds)
+static bool reds_use_client_monitors_config(RedsState *reds)
 {
     GListIter it;
     QXLInstance *qxl;
 
     if (reds->qxl_instances == NULL) {
-        return FALSE;
+        return false;
     }
 
     FOREACH_QXL_INSTANCE(reds, it, qxl) {
         if (!red_qxl_use_client_monitors_config(qxl))
-            return FALSE;
+            return false;
     }
-    return TRUE;
+    return true;
 }
 
 static void reds_client_monitors_config(RedsState *reds, VDAgentMonitorsConfig *monitors_config)
-- 
2.9.4

_______________________________________________
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]