2001-01-18 00:06:51 +03:00
|
|
|
#ifndef NSTRACEMALLOCCALLBACKS_H
|
|
|
|
#define NSTRACEMALLOCCALLBACKS_H
|
|
|
|
|
|
|
|
PR_BEGIN_EXTERN_C
|
|
|
|
|
|
|
|
|
|
|
|
PR_EXTERN(void) StartupHooker();/*implemented in TraceMalloc.cpp*/
|
|
|
|
PR_EXTERN(void) ShutdownHooker();
|
|
|
|
|
2001-12-15 03:24:12 +03:00
|
|
|
PR_EXTERN(void) MallocCallback(void *aPtr, size_t aSize, PRUint32 start, PRUint32 end);/*implemented in nsTraceMalloc.c*/
|
|
|
|
PR_EXTERN(void) CallocCallback(void *aPtr, size_t aCount, size_t aSize, PRUint32 start, PRUint32 end);
|
|
|
|
PR_EXTERN(void) ReallocCallback(void *aPin, void* aPout, size_t aSize, PRUint32 start, PRUint32 end);
|
|
|
|
PR_EXTERN(void) FreeCallback(void *aPtr, PRUint32 start, PRUint32 end);
|
2001-01-18 00:06:51 +03:00
|
|
|
|
|
|
|
|
|
|
|
PR_END_EXTERN_C
|
|
|
|
|
|
|
|
|
|
|
|
#endif //NSTRACEMALLOCCALLBACKS_H
|
|
|
|
|