2 * libqos malloc support for PC
4 * Copyright IBM, Corp. 2012-2013
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.
13 #ifndef LIBQOS_MALLOC_PC_H
14 #define LIBQOS_MALLOC_PC_H
16 #include "libqos/malloc.h"
19 PC_ALLOC_NO_FLAGS
= 0x00,
20 PC_ALLOC_LEAK_WARN
= 0x01,
21 PC_ALLOC_LEAK_ASSERT
= 0x02,
22 PC_ALLOC_PARANOID
= 0x04
25 QGuestAllocator
*pc_alloc_init(void);
26 QGuestAllocator
*pc_alloc_init_flags(PCAllocOpts flags
);
27 void pc_alloc_uninit(QGuestAllocator
*allocator
);