2 * The UCW Library -- Resources for Memory Pools
4 * (c) 2011 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
11 #include <ucw/resource.h>
12 #include <ucw/mempool.h>
19 mp_res_free(struct resource *r)
25 mp_res_dump(struct resource *r, uns indent UNUSED)
27 printf(" pool=%p\n", r->priv);
30 static const struct res_class mp_res_class = {
37 res_mempool(struct mempool *mp)
39 return res_new(&mp_res_class, mp);
46 struct respool *rp = rp_new("test", NULL);
48 res_mempool(mp_new(4096));