VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.14/testOOMlib.h@ 98108

Last change on this file since 98108 was 95312, checked in by vboxsync, 2 years ago

libs/{curl,libxml2}: OSE export fixes, bugref:8515

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette