From: Mark Yacoub <markyacoub@google.com>
To: igt-dev@lists.freedesktop.org
Cc: Sasha McIntosh <sashamcintosh@google.com>, markyacoub@google.com
Subject: [PATCH i-g-t] include/android: Define additional types in glib.h
Date: Wed, 4 Mar 2026 15:08:09 -0500 [thread overview]
Message-ID: <20260304200809.2562643-1-markyacoub@google.com> (raw)
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
next reply other threads:[~2026-03-04 20:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-04 20:08 Mark Yacoub [this message]
2026-03-05 8:13 ` ✓ i915.CI.BAT: success for include/android: Define additional types in glib.h 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260304200809.2562643-1-markyacoub@google.com \
--to=markyacoub@google.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=sashamcintosh@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox