diff options
Diffstat (limited to 'wayland-util.c')
-rw-r--r-- | wayland-util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wayland-util.c b/wayland-util.c index e763453..a3ef108 100644 --- a/wayland-util.c +++ b/wayland-util.c @@ -81,3 +81,9 @@ wl_list_length(struct wl_list *list) return count; } + +int +wl_list_empty(struct wl_list *list) +{ + return list->next == list; +} |