[retro-gtk] system-info: Fix its types and qualifiers



commit a4077efdddc58b4dd83046e9b184d60d95a37385
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Aug 1 16:11:46 2021 +0200

    system-info: Fix its types and qualifiers
    
    The strings are supposed to be constant and the booleans and bool, not
    gboolean. This also fixes the ABI.

 retro-runner/retro-system-info-private.h | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/retro-runner/retro-system-info-private.h b/retro-runner/retro-system-info-private.h
index 1e2cb9a..e066634 100644
--- a/retro-runner/retro-system-info-private.h
+++ b/retro-runner/retro-system-info-private.h
@@ -7,6 +7,7 @@
 #endif
 
 #include <glib.h>
+#include <stdbool.h>
 
 G_BEGIN_DECLS
 
@@ -14,11 +15,11 @@ typedef struct _RetroSystemInfo RetroSystemInfo;
 
 struct _RetroSystemInfo
 {
-  gchar *library_name;
-  gchar *library_version;
-  gchar *valid_extensions;
-  gboolean need_fullpath;
-  gboolean block_extract;
+  const gchar *library_name;
+  const gchar *library_version;
+  const gchar *valid_extensions;
+  bool need_fullpath;
+  bool block_extract;
 };
 
 G_END_DECLS


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