[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/4] qtest: add dummy functions for user emulators
From: |
Blue Swirl |
Subject: |
[Qemu-devel] [PATCH 2/4] qtest: add dummy functions for user emulators |
Date: |
Thu, 19 Apr 2012 20:27:11 +0000 |
Allow qtest to be used also in files used for user emulators by
introducing dummy functions.
Signed-off-by: Blue Swirl <address@hidden>
---
qtest.h | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
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
--
1.7.10
0002-qtest-add-dummy-functions-for-user-emulators.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH 2/4] qtest: add dummy functions for user emulators,
Blue Swirl <=