On 13/5/25 13:13, Daniel P. Berrangé wrote:
On Tue, May 13, 2025 at 12:11:05PM +0100, Philippe Mathieu-Daudé wrote:
On 13/5/25 13:08, Philippe Mathieu-Daudé wrote:
On 13/5/25 12:08, Daniel P. Berrangé wrote:
From: Daniel P. Berrangé <berra...@redhat.com>

It will make it easier to do certain comparisons in future if we
store G_BIG_ENDIAN/G_LITTLE_ENDIAN directly, instead of a boolean
flag.

Signed-off-by: Daniel P. Berrangé <berra...@redhat.com>
---
   ui/vnc-enc-tight.c | 2 +-
   ui/vnc-enc-zrle.c  | 2 +-
   ui/vnc-jobs.c      | 2 +-
   ui/vnc.c           | 6 +++---
   ui/vnc.h           | 2 +-
   5 files changed, 7 insertions(+), 7 deletions(-)


diff --git a/ui/vnc.h b/ui/vnc.h
index acc53a2cc1..f2a627dcdf 100644
--- a/ui/vnc.h
+++ b/ui/vnc.h
@@ -323,7 +323,7 @@ struct VncState
       VncWritePixels *write_pixels;
       PixelFormat client_pf;
       pixman_format_code_t client_format;
-    bool client_be;
+    int client_bo; /* G_LITTLE_ENDIAN or G_BIG_ENDIAN */

'bo' = 'big order'?

bo == byte order.

Oh of course. Since no GLib endian enum, preferably:

  int client_bo; /* byte order: G_LITTLE_ENDIAN or G_BIG_ENDIAN */


Reply via email to