core: add macro for iterating CList of devices of NMManager

System Internals / NetworkManager - Thomas Haller [redhat.com] - 4 April 2018 12:02 EDT

I find it slightly nicer and explict. Also, the list elements are strictly speaking private, we should better not explicitly use them outside of NMManager/NMDevice. The macro hides this.

8de522fad core: add macro for iterating CList of devices of NMManager
src/devices/wifi/nm-device-olpc-mesh.c | 5 ++---
src/devices/wifi/nm-iwd-manager.c | 14 ++++++--------
src/nm-checkpoint-manager.c | 5 ++---
src/nm-checkpoint.c | 5 ++---
src/nm-manager.h | 15 ++++++++++++++-
src/nm-policy.c | 25 ++++++++++---------------
6 files changed, 36 insertions(+), 33 deletions(-)

Upstream: cgit.freedesktop.org


  • Share