chardev: unref if underlying chardev has no parent
[qemu/ar7.git] / tests / libqos / malloc-spapr.h
blob52a9346a26e79bcebee814366db6a5b294e5d05f
1 /*
2 * libqos malloc support for SPAPR
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
6 */
8 #ifndef LIBQOS_MALLOC_SPAPR_H
9 #define LIBQOS_MALLOC_SPAPR_H
11 #include "libqos/malloc.h"
13 QGuestAllocator *spapr_alloc_init(void);
14 QGuestAllocator *spapr_alloc_init_flags(QTestState *qts, QAllocOpts flags);
15 void spapr_alloc_uninit(QGuestAllocator *allocator);
17 #endif