diff options
author | shennetsind <notind@gmail.com> | 2013-08-08 11:19:02 -0700 |
---|---|---|
committer | shennetsind <notind@gmail.com> | 2013-08-08 11:19:02 -0700 |
commit | 1197e46b6ca1f399edc18fbd60a3e2c4adf6c32f (patch) | |
tree | cbfd9f0847cb5b9e65cd77ab4e8861f34165c67d /src/common/malloc.h | |
parent | defac0ef9714121a872ab48c3f6c4ddd177ae509 (diff) | |
parent | 04db720ee56ad8ddddf4255575c5d60e2c214a13 (diff) | |
download | hercules-1197e46b6ca1f399edc18fbd60a3e2c4adf6c32f.tar.gz hercules-1197e46b6ca1f399edc18fbd60a3e2c4adf6c32f.tar.bz2 hercules-1197e46b6ca1f399edc18fbd60a3e2c4adf6c32f.tar.xz hercules-1197e46b6ca1f399edc18fbd60a3e2c4adf6c32f.zip |
Merge pull request #83 from HerculesWS/HPMUpdateR2
Hercules Plugin Manager Update
Diffstat (limited to 'src/common/malloc.h')
-rw-r--r-- | src/common/malloc.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/common/malloc.h b/src/common/malloc.h index 834781905..bc8aa9a20 100644 --- a/src/common/malloc.h +++ b/src/common/malloc.h @@ -67,18 +67,21 @@ void malloc_defaults(void); struct malloc_interface { + void (*init) (void); + void (*final) (void); + /* */ void* (*malloc )(size_t size, const char *file, int line, const char *func); void* (*calloc )(size_t num, size_t size, const char *file, int line, const char *func); void* (*realloc )(void *p, size_t size, const char *file, int line, const char *func); char* (*astrdup )(const char *p, const char *file, int line, const char *func); void (*free )(void *p, const char *file, int line, const char *func); - + /* */ void (*memory_check)(void); bool (*verify_ptr)(void* ptr); size_t (*usage) (void); - void (*init) (void); - void (*final) (void); -} iMalloc_s; + /* */ + void (*post_shutdown) (void); +}; void memmgr_report (int extra); |