/[cvs]/eggdrop1.9/src/egglib/mempool.h
ViewVC logotype

Contents of /eggdrop1.9/src/egglib/mempool.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Sun Oct 28 13:30:35 2001 UTC (17 years, 11 months ago) by ite
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-csrc
FILE REMOVED
Renamed src/adns, src/compat, src/egglib to lib/adns, lib/compat, lib/egglib respectively.

1 #ifndef _MEMPOOL_H_
2 #define _MEMPOOL_H_
3
4 typedef struct mempool_b {
5 int chunk_size;
6 int nchunks;
7 char *free_chunk_ptr;
8 char *pools;
9 } mempool_t;
10
11 mempool_t *mempool_create(mempool_t *pool, int nchunks, int chunk_size);
12 int mempool_destroy(mempool_t *pool);
13 int mempool_grow(mempool_t *pool, int nchunks);
14 void *mempool_get_chunk(mempool_t *pool);
15 int mempool_free_chunk(mempool_t *pool, void *chunk);
16
17 #endif /* _MEMPOOL_H_ */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23