# HG changeset patch # User Olaf Wintermann # Date 1325350492 -3600 # Node ID a1740117e2b715ede26aae72f3f5b1766997db60 # Parent dbc31727b38ed259aacc6c6e6fbd78665d7cf37f added list specification diff -r dbc31727b38e -r a1740117e2b7 ucx/list.h --- a/ucx/list.h Sat Dec 31 17:52:26 2011 +0100 +++ b/ucx/list.h Sat Dec 31 17:54:52 2011 +0100 @@ -9,7 +9,18 @@ extern "C" { #endif +typedef struct UcxList UcxList; +struct UcxList { + void *data; + UcxList *next; +}; +UcxList *ucx_dlist_append(UcxList *l, void *data); +UcxList *ucx_dlist_prepend(UcxList *l, void *data); +UcxList *ucx_dlist_concat(UcxList *l1, UcxDlist *l2); +UcxList *ucx_dlist_last(UcxList *l); +UcxList *ucx_dlist_get(UcxList *l, int index); +size_t *ucx_dlist_size(UcxList *l); #ifdef __cplusplus diff -r dbc31727b38e -r a1740117e2b7 ucx/ucx.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ucx/ucx.h Sat Dec 31 17:54:52 2011 +0100 @@ -0,0 +1,24 @@ +/* + * File: ucx.h + * Author: olaf + * + * Created on 31. Dezember 2011, 17:17 + */ + +#ifndef UCX_H +#define UCX_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef int(*ucx_callback)(void*,void*); + +#ifdef __cplusplus +} +#endif + +#endif /* UCX_H */ +