summaryrefslogtreecommitdiffstats
path: root/qtest.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtest.h')
-rw-r--r--qtest.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/qtest.h b/qtest.h
index 1478343..723a4f9 100644
--- a/qtest.h
+++ b/qtest.h
@@ -16,6 +16,7 @@
#include "qemu-common.h"
+#if !defined(CONFIG_USER_ONLY)
extern int qtest_allowed;
extern const char *qtest_chrdev;
extern const char *qtest_log;
@@ -31,5 +32,22 @@ static inline int qtest_available(void)
}
int qtest_init(void);
+#else
+static inline bool qtest_enabled(void)
+{
+ return false;
+}
+
+static inline int qtest_available(void)
+{
+ return 0;
+}
+
+static inline int qtest_init(void)
+{
+ return 0;
+}
+
+#endif
#endif
OpenPOWER on IntegriCloud