]> Git Repo - qemu.git/blame - include/sysemu/qtest.h
scsi: push WWN fields up to SCSIDevice
[qemu.git] / include / sysemu / qtest.h
CommitLineData
c7f0f3b1
AL
1/*
2 * Test Server
3 *
4 * Copyright IBM, Corp. 2011
5 *
6 * Authors:
7 * Anthony Liguori <[email protected]>
8 *
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.
11 *
12 */
13
14#ifndef QTEST_H
15#define QTEST_H
16
17#include "qemu-common.h"
23802b4f 18#include "qapi/error.h"
c7f0f3b1 19
d5286af5 20extern bool qtest_allowed;
c7f0f3b1
AL
21
22static inline bool qtest_enabled(void)
23{
24 return qtest_allowed;
25}
26
b3be57c3
MT
27bool qtest_driver(void);
28
23802b4f 29void qtest_init(const char *qtest_chrdev, const char *qtest_log, Error **errp);
d4fce24f 30
c7f0f3b1
AL
31static inline int qtest_available(void)
32{
d4fce24f 33#ifdef CONFIG_POSIX
c7f0f3b1 34 return 1;
e776bffb 35#else
e776bffb 36 return 0;
e776bffb 37#endif
d4fce24f 38}
c7f0f3b1
AL
39
40#endif
This page took 0.253645 seconds and 4 git commands to generate.