summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/rtservice.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/rtservice.h b/include/rtservice.h
index 3eec146960..f909f17f86 100644
--- a/include/rtservice.h
+++ b/include/rtservice.h
@@ -230,6 +230,16 @@ rt_inline rt_slist_t *rt_slist_remove(rt_slist_t *l, rt_slist_t *n)
return l;
}
+rt_inline rt_slist_t *rt_slist_first(rt_slist_t *l)
+{
+ return l->next;
+}
+
+rt_inline rt_slist_t *rt_slist_next(rt_slist_t *n)
+{
+ return n->next;
+}
+
rt_inline int rt_slist_isempty(rt_slist_t *l)
{
return l->next == RT_NULL;