aboutsummaryrefslogtreecommitdiffstats
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 3c9d512..cf8bb42 100644
--- a/monitor.c
+++ b/monitor.c
@@ -86,8 +86,18 @@ struct Monitor {
void *password_opaque;
QLIST_ENTRY(Monitor) entry;
int has_quit;
+#ifdef CONFIG_ANDROID
+ void* fake_opaque;
+ MonitorFakeFunc fake_func;
+ int64_t fake_count;
+
+#endif
};
+#ifdef CONFIG_ANDROID
+#include "monitor-android.h"
+#endif
+
static QLIST_HEAD(mon_list, Monitor) mon_list;
#if defined(TARGET_I386)
@@ -158,6 +168,7 @@ static int monitor_read_password(Monitor *mon, ReadLineFunc *readline_func,
}
}
+#ifndef CONFIG_ANDROID /* See monitor-android.h */
void monitor_flush(Monitor *mon)
{
if (mon && mon->outbuf_index != 0 && !mon->mux_out) {
@@ -165,6 +176,7 @@ void monitor_flush(Monitor *mon)
mon->outbuf_index = 0;
}
}
+#endif
/* flush at every end of line or if the buffer is full */
static void monitor_puts(Monitor *mon, const char *str)