]> jfr.im git - irc/quakenet/newserv.git/blame - core/nsmalloc.h
Make valgrind a bit happier.
[irc/quakenet/newserv.git] / core / nsmalloc.h
CommitLineData
34da4416 1/* nsmalloc: Simple pooled malloc() thing. */
2
3#include <stdlib.h>
4
5void *nsmalloc(unsigned int poolid, size_t size);
6void nsfree(unsigned int poolid, void *ptr);
7void nsfreeall(unsigned int poolid);
103521a1 8void nsexit(void);
34da4416 9
10#define MAXPOOL 100
11
12/* Pools here in the order they were created */
13#define POOL_AUTHEXT 0
14#define POOL_CHANINDEX 1
c5f1338c 15#define POOL_BANS 2
16#define POOL_CHANNEL 3
103521a1 17#define POOL_NICK 4
18#define POOL_CHANSERVDB 5
19#define POOL_SSTRING 6