mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 01:57:05 +08:00
[rtservice] Add rt_slist_first
and rt_slist_next
API to slist.
This commit is contained in:
parent
355e9f29fb
commit
aa12d66b30
@ -230,6 +230,16 @@ rt_inline rt_slist_t *rt_slist_remove(rt_slist_t *l, rt_slist_t *n)
|
|||||||
return l;
|
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)
|
rt_inline int rt_slist_isempty(rt_slist_t *l)
|
||||||
{
|
{
|
||||||
return l->next == RT_NULL;
|
return l->next == RT_NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user