VirtualBox

source: vbox/trunk/src/libs/libxml2-2.12.6/testOOMlib.h

Last change on this file was 104106, checked in by vboxsync, 8 weeks ago

libxml2-2.9.14: Applied and adjusted our libxml2 changes to 2.9.14. bugref:10640

  • Property svn:eol-style set to native
File size: 568 bytes
Line 
1#ifndef TEST_OOM_LIB_H
2#define TEST_OOM_LIB_H
3
4#include <stddef.h>
5
6void* test_malloc (size_t bytes);
7void* test_realloc (void *memory,
8 size_t bytes);
9void test_free (void *memory);
10char* test_strdup (const char *str);
11
12/* returns true on success */
13typedef int (* TestMemoryFunction) (void *data);
14
15/* returns true on success */
16int test_oom_handling (TestMemoryFunction func,
17 void *data);
18
19/* get number of blocks leaked */
20int test_get_malloc_blocks_outstanding (void);
21
22#endif
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use