diff options
Diffstat (limited to 'tests/libqos/libqos.h')
-rw-r--r-- | tests/libqos/libqos.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/libqos/libqos.h b/tests/libqos/libqos.h index 7ae0a8d600..612d41e5e9 100644 --- a/tests/libqos/libqos.h +++ b/tests/libqos/libqos.h @@ -5,13 +5,19 @@ #include "libqos/pci.h" #include "libqos/malloc-pc.h" +typedef struct QOSOps { + QGuestAllocator *(*init_allocator)(QAllocOpts); + void (*uninit_allocator)(QGuestAllocator *); +} QOSOps; + typedef struct QOSState { QTestState *qts; QGuestAllocator *alloc; + QOSOps *ops; } QOSState; -QOSState *qtest_vboot(const char *cmdline_fmt, va_list ap); -QOSState *qtest_boot(const char *cmdline_fmt, ...); +QOSState *qtest_vboot(QOSOps *ops, const char *cmdline_fmt, va_list ap); +QOSState *qtest_boot(QOSOps *ops, const char *cmdline_fmt, ...); void qtest_shutdown(QOSState *qs); static inline uint64_t qmalloc(QOSState *q, size_t bytes) |