diff options
Diffstat (limited to 'mem_pool.h')
-rw-r--r-- | mem_pool.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mem_pool.h b/mem_pool.h index fc487c97c..0927d9197 100644 --- a/mem_pool.h +++ b/mem_pool.h @@ -3,12 +3,15 @@ #include <sys/types.h> #include <glib.h> - +struct _pool_chain { + u_char *begin; + u_char *pos; + size_t len; + struct _pool_chain *next; +}; typedef struct memory_pool_s { - u_char *begin; - u_char *pos; - size_t len; - struct memory_pool_s *next; + struct _pool_chain *cur_pool; + struct _pool_chain *first_pool; } memory_pool_t; memory_pool_t* memory_pool_new (size_t size); |