mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
85215d419b
commit
e776bffb53
1 changed files with 18 additions and 0 deletions
18
qtest.h
18
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue