renamed capwap directory to cw.
FossilOrigin-Name: 8a43dd9d05a4cb73210243ddd8df2a26f16c7ef2c4d4e36ab446de1f65d88223
This commit is contained in:
24
src/cw/mlist.h
Normal file
24
src/cw/mlist.h
Normal file
@ -0,0 +1,24 @@
|
||||
#ifndef __MLIST_H
|
||||
#define __MLIST_H
|
||||
|
||||
struct mlist_elem {
|
||||
void *data;
|
||||
struct mlist_elem *next;
|
||||
};
|
||||
|
||||
struct mlist {
|
||||
void *data;
|
||||
int (*cmp) (void *d1, void *d2);
|
||||
struct mlist_elem *list;
|
||||
};
|
||||
|
||||
typedef struct mlist mlist_t;
|
||||
|
||||
|
||||
extern mlist_t *mlist_create(int (*cmp) (void *v1, void *v2));
|
||||
extern struct mlist_elem *mlist_append(mlist_t * l, void *data);
|
||||
extern struct mlist_elem *mlist_find(mlist_t * l, struct mlist_elem *start, void *data);
|
||||
extern struct mlist_elem *mlist_replace(mlist_t *l, struct mlist_elem *start, void *data);
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user