ordinary/include/ordinary/list.h

20 lines
306 B
C

#ifndef __ORDINARY_LIST_H_
#define __ORDINARY_LIST_H_
#include <stdint.h>
struct ordinary_node {
struct ordinary_node *prev;
struct ordinary_node *next;
void *val;
};
struct ordinary_list {
struct ordinary_node *head;
struct ordinary_node *tail;
uint32_t count;
uint32_t limit;
};
#endif