aboutsummaryrefslogtreecommitdiffstats
path: root/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'console.c')
-rw-r--r--console.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/console.c b/console.c
index 5c9a16b..f6694b2 100644
--- a/console.c
+++ b/console.c
@@ -1733,6 +1733,23 @@ PixelFormat qemu_default_pixelformat(int bpp)
}
#ifdef CONFIG_ANDROID
+
+void
+unregister_displayupdatelistener(DisplayState *ds, DisplayUpdateListener *dul)
+{
+ DisplayUpdateListener **pnode = &ds->update_listeners;
+ for (;;) {
+ if (*pnode == NULL)
+ break;
+ if (*pnode == dul) {
+ *pnode = dul->next;
+ break;
+ }
+ pnode = &(*pnode)->next;
+ }
+ dul->next = NULL;
+}
+
void
android_display_reset(DisplayState* ds, int width, int height, int bitspp)
{