2 * UCW Library -- Linked Lists of Simple Items
4 * (c) 2006 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/mempool.h>
13 #include <ucw/simple-lists.h>
16 simp_append(struct mempool *mp, clist *l)
18 simp_node *n = mp_alloc_fast(mp, sizeof(*n));
19 clist_add_tail(l, &n->n);
24 simp2_append(struct mempool *mp, clist *l)
26 simp2_node *n = mp_alloc_fast(mp, sizeof(*n));
27 clist_add_tail(l, &n->n);
31 /* Configuration sections for common lists */
33 struct cf_section cf_string_list_config = {
36 CF_STRING("String", PTR_TO(simp_node, s)),
41 struct cf_section cf_2string_list_config = {
44 CF_STRING("Src", PTR_TO(simp2_node, s1)),
45 CF_STRING("Dest", PTR_TO(simp2_node, s2)),