public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] include/android: Define additional types in glib.h
@ 2026-03-04 20:08 Mark Yacoub
  2026-03-05  8:13 ` ✓ i915.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Mark Yacoub @ 2026-03-04 20:08 UTC (permalink / raw)
  To: igt-dev; +Cc: Sasha McIntosh, markyacoub

From: Sasha McIntosh <sashamcintosh@google.com>

Define additional types to satisfy dependencies in kms_colorop.c to fix
breakages in the Android build environment.

Bug: 442873283
Test: kms_colorop
---
 include/android/glib.h | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/include/android/glib.h b/include/android/glib.h
index e12aaeebb..660386ca4 100644
--- a/include/android/glib.h
+++ b/include/android/glib.h
@@ -8,6 +8,7 @@
 
 #define G_KEY_FILE_NONE 0
 #define G_REGEX_OPTIMIZE 0
+#define GINT_TO_POINTER(i) ((void *)(signed long)(i))
 
 typedef struct _GError {
 	int code;
@@ -23,6 +24,11 @@ typedef struct _GMatchInfo {
 	int dummy;
 } GMatchInfo;
 
+typedef struct _GHashTable {
+  unsigned int hash_func;
+  bool key_equal_func;
+} GHashTable;
+
 typedef int gint;
 typedef size_t gsize;
 typedef char gchar;
@@ -30,6 +36,9 @@ typedef unsigned char guchar;
 typedef void GRegex;
 typedef int GRegexMatchFlags;
 typedef bool gboolean;
+typedef unsigned int guint;
+typedef guint (*GHashFunc)(const void *key);
+typedef gboolean (*GEqualFunc)(const void *a, const void *b);
 
 static inline void g_clear_error(GError **error) { }
 static inline void g_error_free(GError *error) { }
@@ -52,5 +61,18 @@ static inline gboolean g_regex_match(GRegex *regex, const gchar *string,
 	GRegexMatchFlags match_options, GMatchInfo **match_info) { return false; }
 
 static gchar *g_base64_encode(const guchar *data, gsize len) { return NULL; }
+static guint g_direct_hash(const void *v) { return 0; }
+static gboolean g_direct_equal(const void *v1, const void *v2) { return 0; }
+static inline GHashTable *g_hash_table_new(GHashFunc hash_func,
+                                           GEqualFunc key_equal_func) {
+  return NULL;
+}
+static inline void g_hash_table_destroy(GHashTable *hash_table) { }
+static inline gboolean g_hash_table_add(GHashTable *hash_table, void *key) {
+  return false;
+}
+static inline gboolean g_hash_table_contains(GHashTable *hash_table, const void *key) {
+  return false;
+}
 
 #endif /* _IGT_ANDROID_GLIB_H */
-- 
2.53.0.473.g4a7958ca14-goog


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-06  5:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 20:08 [PATCH i-g-t] include/android: Define additional types in glib.h Mark Yacoub
2026-03-05  8:13 ` ✓ i915.CI.BAT: success for " Patchwork
2026-03-05 10:45 ` [PATCH i-g-t] " Kamil Konieczny
2026-03-05 12:36 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-03-05 19:08 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-03-06  5:58 ` ✓ i915.CI.Full: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox