ucx/list.h

Sat, 31 Dec 2011 17:54:52 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 31 Dec 2011 17:54:52 +0100
changeset 5
a1740117e2b7
parent 2
79646375a420
child 6
50b5fe7c577f
permissions
-rw-r--r--

added list specification

     1 /*
     2  * 
     3  */
     5 #ifndef LIST_H
     6 #define	LIST_H
     8 #ifdef	__cplusplus
     9 extern "C" {
    10 #endif
    12 typedef struct UcxList UcxList;
    13 struct UcxList {
    14     void    *data;
    15     UcxList *next;
    16 };
    18 UcxList *ucx_dlist_append(UcxList *l, void *data);
    19 UcxList *ucx_dlist_prepend(UcxList *l, void *data);
    20 UcxList *ucx_dlist_concat(UcxList *l1, UcxDlist *l2);
    21 UcxList *ucx_dlist_last(UcxList *l);
    22 UcxList *ucx_dlist_get(UcxList *l, int index);
    23 size_t *ucx_dlist_size(UcxList *l);
    26 #ifdef	__cplusplus
    27 }
    28 #endif
    30 #endif	/* LIST_H */

mercurial