diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/u-boot-sam460ex/board/ACube/menu/list.h | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/u-boot-sam460ex/board/ACube/menu/list.h')
-rw-r--r-- | roms/u-boot-sam460ex/board/ACube/menu/list.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/roms/u-boot-sam460ex/board/ACube/menu/list.h b/roms/u-boot-sam460ex/board/ACube/menu/list.h new file mode 100644 index 000000000..d66edc830 --- /dev/null +++ b/roms/u-boot-sam460ex/board/ACube/menu/list.h @@ -0,0 +1,39 @@ +#ifndef MENU_LIST_H +#define MENU_LIST_H + +#ifndef bool_defined +#define bool_defined +typedef int bool; +#endif + +#ifndef true +#define true 1 +#endif + +#ifndef false +#define false 0 +#endif + +#ifndef NULL +#define NULL ((void *)0L) +#endif + + +/* List functions */ +typedef struct node_s +{ + struct node_s *prev; + struct node_s *next; +} node_t; + +typedef struct list_s +{ + node_t *first; + node_t *last; +} mylist_t; + +//void list_init(mylist_t *list); +//void list_add(mylist_t *list, node_t *node); +//bool list_empty(mylist_t *list); + +#endif //MENU_LIST_H |