ucx/list.h

Sat, 31 Dec 2011 18:04:28 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 31 Dec 2011 18:04:28 +0100
changeset 6
50b5fe7c577f
parent 5
a1740117e2b7
child 9
013c5c4b7e44
permissions
-rw-r--r--

Fixed fatal super bug

     1 /*
     2  * 
     3  */
     5 #ifndef LIST_H
     6 #define	LIST_H
     8 #include "ucx.h"
     9 #include <stddef.h>
    11 #ifdef	__cplusplus
    12 extern "C" {
    13 #endif
    15 typedef struct UcxList UcxList;
    16 struct UcxList {
    17     void    *data;
    18     UcxList *next;
    19 };
    21 UcxList *ucx_list_append(UcxList *l, void *data);
    22 UcxList *ucx_list_prepend(UcxList *l, void *data);
    23 UcxList *ucx_list_concat(UcxList *l1, UcxDlist *l2);
    24 UcxList *ucx_list_last(UcxList *l);
    25 UcxList *ucx_list_get(UcxList *l, int index);
    26 size_t ucx_list_size(UcxList *l);
    27 void ucx_list_foreach(UcxList *l, ucx_callback fnc, void *data);
    30 #ifdef	__cplusplus
    31 }
    32 #endif
    34 #endif	/* LIST_H */

mercurial