/* * libqos malloc support for PC * * Copyright IBM, Corp. 2012-2013 * * Authors: * Anthony Liguori * * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ #ifndef LIBQOS_MALLOC_PC_H #define LIBQOS_MALLOC_PC_H #include "libqos/malloc.h" typedef enum { PC_ALLOC_NO_FLAGS = 0x00, PC_ALLOC_LEAK_WARN = 0x01, PC_ALLOC_LEAK_ASSERT = 0x02, PC_ALLOC_PARANOID = 0x04 } PCAllocOpts; QGuestAllocator *pc_alloc_init(void); QGuestAllocator *pc_alloc_init_flags(PCAllocOpts flags); void pc_alloc_uninit(QGuestAllocator *allocator); #endif