]>
jfr.im git - irc/quakenet/newserv.git/blob - core/nsmalloc.h
e1bcd2dcb2c5b72da914e920c32362ced5bf31f3
1 /* nsmalloc: Simple pooled malloc() thing. */
5 void *nsmalloc(unsigned int poolid
, size_t size
);
6 void nsfree(unsigned int poolid
, void *ptr
);
7 void nsfreeall(unsigned int poolid
);
12 /* Pools here in the order they were created */
13 #define POOL_AUTHEXT 0
14 #define POOL_CHANINDEX 1
16 #define POOL_CHANNEL 3
18 #define POOL_CHANSERVDB 5
19 #define POOL_SSTRING 6
20 #define POOL_AUTHTRACKER 7
21 #define POOL_PROXYSCAN 8