fix mt-mapperd pithos read bug. plus some minor fixes
[archipelago] / xseg / xtypes / xlist.h
1 #ifndef _XLIST_H
2 #define _XLIST_H
3
4 #include <xq/xq.h>
5
6 struct xlist_node {
7         XPTR_TYPE(struct xlist_node) head;
8         XPTR_TYPE(struct xlist_node) tail;
9         XPTR_TYPE(struct xlist) list;
10 };
11
12 struct xlist {
13         XPTR_TYPE(struct xlist_node) node;
14 };
15
16 xqindex xlist_add(struct xlist *list, struct xlist_node *node);
17 void xlist_del(struct xlist_node *node);
18
19 #endif