]> Git Repo - qemu.git/blame - tests/libqos/libqos.h
libqos: create libqos.c
[qemu.git] / tests / libqos / libqos.h
CommitLineData
dd0029c0
JS
1#ifndef __libqos_h
2#define __libqos_h
3
4#include "libqtest.h"
5#include "libqos/pci.h"
6#include "libqos/malloc-pc.h"
7
8typedef struct QOSState {
9 QTestState *qts;
10 QGuestAllocator *alloc;
11} QOSState;
12
13QOSState *qtest_boot(const char *cmdline_fmt, ...);
14void qtest_shutdown(QOSState *qs);
15
16static inline uint64_t qmalloc(QOSState *q, size_t bytes)
17{
18 return guest_alloc(q->alloc, bytes);
19}
20
21static inline void qfree(QOSState *q, uint64_t addr)
22{
23 guest_free(q->alloc, addr);
24}
25
26#endif
This page took 0.024921 seconds and 4 git commands to generate.