summaryrefslogtreecommitdiff
path: root/wayland-util.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-11-28 18:35:25 -0500
committerKristian Høgsberg <krh@redhat.com>2008-11-28 18:35:25 -0500
commit4a29890da774c5724921ee1018fa5ae7852abb81 (patch)
treeaf2a6a4177acbfa4ce88a5564b5521368b81b0ea /wayland-util.c
parentfbdbbdc153bf7f6ed22f1b9cb0be73b66e87a3e7 (diff)
Generalize event loop a bit and pull in the timerfd stuff.
Diffstat (limited to 'wayland-util.c')
-rw-r--r--wayland-util.c6
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;
+}