summaryrefslogtreecommitdiff
path: root/src/pa-sink-ctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pa-sink-ctl.h')
-rw-r--r--src/pa-sink-ctl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pa-sink-ctl.h b/src/pa-sink-ctl.h
index d8cd5bb..f56b17c 100644
--- a/src/pa-sink-ctl.h
+++ b/src/pa-sink-ctl.h
@@ -67,4 +67,7 @@ change_callback(pa_context* c, gint success, gpointer);
g_memdup(&(data), sizeof(data))); \
} while (0)
+#define list_foreach(list, el) \
+ for (GList *__l = (list); __l && ((el) = __l->data); __l = __l->next)
+
#endif