[PATCH] android: glib: add g_key_file_get_boolean stub

Mark Yacoub <[email protected]> Mon, 27 Jul 2026 10:22:00 -0400
Newsgroups org.freedesktop.lists.igt-dev
Message-ID <[email protected]>
This stub function is necessary to allow IGT Unigraf dependencies to successfully compile on the Android platform.

Suggested-by: Mark Yacoub <[email protected]>
---
 include/android/glib.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/android/glib.h b/include/android/glib.h
index 0b6658287..aacfcf138 100644
--- a/include/android/glib.h
+++ b/include/android/glib.h
@@ -55,6 +55,9 @@ static inline double g_key_file_get_double(GKeyFile *key_file,
 	const char *group_name, const char *key, GError **error) { return 0.0; }
 static inline bool g_key_file_load_from_file(GKeyFile *key_file,
 	const char *file, int flags, GError **error) { return false; }
+static inline bool g_key_file_get_boolean(GKeyFile *key_file,
+	const char *group_name, const char *key, GError **error) { return false; }
+
 
 static inline GRegex *g_regex_new(const char *pattern, int compile_options,
 	int match_options, GError **error) { return NULL; }
-- 
2.55.0.229.g6434b31f56-goog