git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: serial device interfacing
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
ds
/
llist.h
diff --git
a/lunaix-os/includes/lunaix/ds/llist.h
b/lunaix-os/includes/lunaix/ds/llist.h
index a4797c34d3f889ab9c0e970ed693607ee7953fbe..ecce44ab332d92af3bed87d0b2fa7957a49b6b1f 100644
(file)
--- a/
lunaix-os/includes/lunaix/ds/llist.h
+++ b/
lunaix-os/includes/lunaix/ds/llist.h
@@
-12,7
+12,7
@@
#ifndef __LUNAIX_LLIST_H
#define __LUNAIX_LLIST_H
#ifndef __LUNAIX_LLIST_H
#define __LUNAIX_LLIST_H
-#include <lunaix/
common
.h>
+#include <lunaix/
types
.h>
struct llist_header
{
struct llist_header
{
@@
-50,6
+50,12
@@
llist_prepend(struct llist_header* head, struct llist_header* elem)
__llist_add(elem, head, head->next);
}
__llist_add(elem, head, head->next);
}
+static inline void
+llist_insert_after(struct llist_header* head, struct llist_header* elem)
+{
+ __llist_add(elem, head, head->next);
+}
+
static inline void
llist_delete(struct llist_header* elem)
{
static inline void
llist_delete(struct llist_header* elem)
{