7 #ifndef UBICLIB_DLIST_H_
8 #define UBICLIB_DLIST_H_
23 #include <ubinos_config.h>
27 #define DLIST_ERR__NOTEXIST -21
97 #define dlist_init(dlist) \
100 (dlist)->head = NULL; \
101 (dlist)->tail = NULL; \
102 (dlist)->cur = NULL; \
103 (dlist)->data = NULL; \
int dlist_find(dlist_pt dlist, dlist_elmt_pt *elmt_p, void *data)
int dlist_findandremove(dlist_pt dlist, dlist_elmt_pt *elmt_p, void *data)
int dlist_create(dlist_pt *dlist_p)
dlist_t * dlist_pt
Definition: dlist.h:90
dlist_elmt_t * dlist_elmt_pt
Definition: dlist.h:46
int dlist_insertprev(dlist_pt dlist, dlist_elmt_pt ref, dlist_elmt_pt elmt)
int dlist_elmt_delete(dlist_elmt_pt elmt)
int dlist_delete(dlist_pt *dlist_p)
struct _dlist_elmt_t dlist_elmt_t
int dlist_remove(dlist_elmt_pt elmt)
dlist_elmt_pt dlist_getcurnext(dlist_pt dlist)
int dlist_insertnext(dlist_pt dlist, dlist_elmt_pt ref, dlist_elmt_pt elmt)
dlist_elmt_pt dlist_elmt_create(void *data, void *data2)
void * data2
Definition: dlist.h:36
void * data
Definition: dlist.h:35
struct _dlist_elmt_t * next
Definition: dlist.h:33
void * list
Definition: dlist.h:34
struct _dlist_elmt_t * prev
Definition: dlist.h:32
void * data
Definition: dlist.h:80
dlist_elmt_pt cur
Definition: dlist.h:79
dlist_elmt_pt tail
Definition: dlist.h:78
dlist_elmt_pt head
Definition: dlist.h:77
unsigned int count
Definition: dlist.h:76