You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
falk-werner_webfuse/lib/webfuse/impl/util/slist.h

49 lines
843 B

#ifndef WF_IMPL_UTIL_SLIST_H
#define WF_IMPL_UTIL_SLIST_H
#ifndef __cplusplus
#include <stdbool.h>
#endif
#ifdef __cplusplus
extern "C"
{
#endif
struct wf_slist_item
{
struct wf_slist_item * next;
};
struct wf_slist
{
struct wf_slist_item head;
struct wf_slist_item * last;
};
extern void wf_impl_slist_init(
struct wf_slist * list);
extern bool wf_impl_slist_empty(
struct wf_slist * list);
extern struct wf_slist_item * wf_impl_slist_first(
struct wf_slist * list);
extern void wf_impl_slist_append(
struct wf_slist * list,
struct wf_slist_item * item);
extern struct wf_slist_item * wf_impl_slist_remove_first(
struct wf_slist * list);
extern struct wf_slist_item * wf_impl_slist_remove_after(
struct wf_slist * list,
struct wf_slist_item * prev);
#ifdef __cplusplus
}
#endif
#endif