mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
stream: Simplify FOREACH_STREAMS macro
This macro is exactly doing what RING_FOREACH just passing streams ring. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe de Dinechin <cdupontd@redhat.com>
This commit is contained in:
parent
1e43272ba1
commit
6ab80b19fa
@ -25,9 +25,7 @@
|
||||
|
||||
#define FPS_TEST_INTERVAL 1
|
||||
#define FOREACH_STREAMS(display, item) \
|
||||
for (item = ring_get_head(&(display)->priv->streams); \
|
||||
item != NULL; \
|
||||
item = ring_next(&(display)->priv->streams, item))
|
||||
RING_FOREACH(item, &(display)->priv->streams)
|
||||
|
||||
static void stream_agent_stats_print(StreamAgent *agent)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user