diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-04-19 18:52:35 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-04-19 18:52:35 +0000 |
commit | e776bffb53973619e93e805fa441bd5f3d999e27 (patch) | |
tree | 587c784f039df172df4cbf031d7d40efe96ebbca | |
parent | 85215d419b17aeedbfe93ff8d739b27937f72739 (diff) | |
download | qemu-e776bffb53973619e93e805fa441bd5f3d999e27.tar.gz qemu-e776bffb53973619e93e805fa441bd5f3d999e27.tar.bz2 qemu-e776bffb53973619e93e805fa441bd5f3d999e27.zip |
qtest: add dummy functions for user emulators
Allow qtest to be used also in files used for user emulators by
introducing dummy functions.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | qtest.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |