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/eltpool.h"
19 ep_res_free(struct resource *r)
25 ep_res_dump(struct resource *r, uns indent UNUSED)
27 printf(" pool=%p\n", r->priv);
30 static const struct res_class ep_res_class = {
37 res_eltpool(struct eltpool *mp)
39 return res_new(&ep_res_class, mp);
46 struct respool *rp = rp_new("test", NULL);
48 res_eltpool(ep_new(16, 256));