[Spice-devel] [RFC PATCH 0/2] Reintroduce some macro to iterate containers

Frediano Ziglio fziglio at redhat.com
Fri Sep 16 15:06:18 UTC 2016


With the introduction of GList/GQueue these macro were removed
at the expense of some minor regressions.
The first patch was started time ago and resemble more to old
macro while the second try to use some more safe way.

Frediano Ziglio (2):
  RedChannel: Add FOREACH_CHANNEL and use it to iterate
  Introduce some macro to simplify iteration on GList

 server/red-channel.c  | 50 ++++++++++++++++++--------------------
 server/red-common.h   | 18 ++++++++++++++
 server/reds-private.h |  3 +++
 server/reds.c         | 66 +++++++++++++++++++++++++--------------------------
 4 files changed, 76 insertions(+), 61 deletions(-)

-- 
2.7.4



More information about the Spice-devel mailing list