qom: Push error reporting to object_property_find()
[qemu-kvm.git] / qtest.h
blob723a4f9536d36b891fa689756964395abba2f673
1 /*
2 * Test Server
4 * Copyright IBM, Corp. 2011
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
14 #ifndef QTEST_H
15 #define QTEST_H
17 #include "qemu-common.h"
19 #if !defined(CONFIG_USER_ONLY)
20 extern int qtest_allowed;
21 extern const char *qtest_chrdev;
22 extern const char *qtest_log;
24 static inline bool qtest_enabled(void)
26 return qtest_allowed;
29 static inline int qtest_available(void)
31 return 1;
34 int qtest_init(void);
35 #else
36 static inline bool qtest_enabled(void)
38 return false;
41 static inline int qtest_available(void)
43 return 0;
46 static inline int qtest_init(void)
48 return 0;
51 #endif
53 #endif