]>
jfr.im git - irc/quakenet/newserv.git/blob - core/nsmalloc.h
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
);
9 void *nsrealloc(unsigned int poolid
, void *ptr
, size_t size
);
10 int nspoolstats(unsigned int poolid
, size_t *size
, unsigned long *count
);
14 /* Pools here in the order they were created */
15 #define POOL_AUTHEXT 0
16 #define POOL_CHANINDEX 1
18 #define POOL_CHANNEL 3
20 #define POOL_CHANSERVDB 5
21 #define POOL_SSTRING 6
22 #define POOL_AUTHTRACKER 7
23 #define POOL_PROXYSCAN 8
25 #define POOL_TROJANSCAN 10
26 #define POOL_NTERFACER 11