ucx/list.h

changeset 5
a1740117e2b7
parent 2
79646375a420
child 6
50b5fe7c577f
     1.1 --- a/ucx/list.h	Sat Dec 31 17:52:26 2011 +0100
     1.2 +++ b/ucx/list.h	Sat Dec 31 17:54:52 2011 +0100
     1.3 @@ -9,7 +9,18 @@
     1.4  extern "C" {
     1.5  #endif
     1.6  
     1.7 +typedef struct UcxList UcxList;
     1.8 +struct UcxList {
     1.9 +    void    *data;
    1.10 +    UcxList *next;
    1.11 +};
    1.12  
    1.13 +UcxList *ucx_dlist_append(UcxList *l, void *data);
    1.14 +UcxList *ucx_dlist_prepend(UcxList *l, void *data);
    1.15 +UcxList *ucx_dlist_concat(UcxList *l1, UcxDlist *l2);
    1.16 +UcxList *ucx_dlist_last(UcxList *l);
    1.17 +UcxList *ucx_dlist_get(UcxList *l, int index);
    1.18 +size_t *ucx_dlist_size(UcxList *l);
    1.19  
    1.20  
    1.21  #ifdef	__cplusplus

mercurial