]> jfr.im git - irc/quakenet/newserv.git/blob - core/nsmalloc.h
Added some new pool IDs.
[irc/quakenet/newserv.git] / core / nsmalloc.h
1 /* nsmalloc: Simple pooled malloc() thing. */
2
3 #include <stdlib.h>
4
5 void *nsmalloc(unsigned int poolid, size_t size);
6 void nsfree(unsigned int poolid, void *ptr);
7 void nsfreeall(unsigned int poolid);
8
9 #define MAXPOOL 100
10
11 /* Pools here in the order they were created */
12 #define POOL_AUTHEXT 0
13 #define POOL_CHANINDEX 1
14 #define POOL_BANS 2
15 #define POOL_CHANNEL 3