platform: refactor detecting kernel support

System Internals / NetworkManager - Thomas Haller [redhat.com] - 12 October 2017 04:38 EDT

We are going to add another parameter to check. Instead of adding multiple
virtual functions, add a NMPlatformKernelSupportFlags flags enum.

5b0745e platform: refactor detecting kernel support
src/devices/nm-device.c | 15 +++++++----
src/nm-iface-helper.c | 3 ++-
src/platform/nm-linux-platform.c | 26 +++++++++++--------
src/platform/nm-platform.c | 54 ++++++++++++++++++++--------------------
src/platform/nm-platform.h | 13 +++++++---
src/platform/tests/test-link.c | 3 ++-
6 files changed, 65 insertions(+), 49 deletions(-)

Upstream: cgit.freedesktop.org


  • Share