projects
/
ppcskel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactoring ugly typedefs...
[ppcskel.git]
/
usb
/
lib
/
list.h
diff --git
a/usb/lib/list.h
b/usb/lib/list.h
index 1f7d551ad5560cd290d42c890dafe83da5eabe2d..68d8b368739730e4e93c0cd4ea2be81a18a5b157 100644
(file)
--- a/
usb/lib/list.h
+++ b/
usb/lib/list.h
@@
-37,28
+37,25
@@
#include "../../types.h"
#include "../../types.h"
-typedef struct element_t element;
-struct element_t {
- void * data;
- element * next;
+struct element {
+ void *data;
+ struct element *next;
};
};
-typedef struct list_t list;
-struct list_t {
- element * head;
+struct list {
+ struct element *head;
};
};
+struct list *list_create(void);
-list* list_create();
+u8 list_add_tail(struct list *l, struct element *e);
+u8 list_delete_element(struct list *l, struct element *e);
-u8 list_add_tail(list *l, element *e);
-u8 list_delete_element(list *l, element *e);
-
-u8 list_is_element_last(list *l, element *e);
-
-element * list_find_next_element(list *l, element *e);
+u8 list_is_element_last(struct list *l, struct element *e);
+struct element *list_find_next_element(struct list *l, struct element *e);
#endif // _LIST_H_
#endif // _LIST_H_
+