summaryrefslogtreecommitdiff
path: root/src/platform/tests/test-link.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-12-30 21:20:26 +0100
committerThomas Haller <thaller@redhat.com>2021-01-15 11:32:32 +0100
commite5d2a05ad5a8b30474e18dc53ac338019be43a39 (patch)
treea2777a7c18b68a51ad0582985d45a64805c655de /src/platform/tests/test-link.c
parent31dca65e04321c120c4166bf5036bb08aa809028 (diff)
downloadNetworkManager-e5d2a05ad5a8b30474e18dc53ac338019be43a39.tar.gz
libnm: add "shared/nm-base/nm-base.h"
Our dependencies are complicated. Currently "src/platform" uses parts of libnm-core and is relatively strongly entangled with core. It would be nice to have that part clearly independent from "src" and from "libnm-core". Also, "src/platform/nm-platform-utils.h" uses NMEthtoolID enum, which previously was defined in "libnm-core/nm-libnm-core-intern/nm-ethtool-utils.h". Move that to a new place "shared/nm-base/nm-base.h". Note that we have "libnm-core/nm-libnm-core-intern", which is libnm/core related code which uses and is used by libnm-core. There is a need for a library which is used by libnm-core, but does not depend on libnm-core itself. Here comes "shared/nm-base". Yes, many libraries. But the goal is to entangle the dependencies and have a clear hierarchy of includes. And to have "shared/nm-platform" independent of libnm-core.
Diffstat (limited to 'src/platform/tests/test-link.c')
-rw-r--r--src/platform/tests/test-link.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platform/tests/test-link.c b/src/platform/tests/test-link.c
index 7deca0e074..c50a66f7a8 100644
--- a/src/platform/tests/test-link.c
+++ b/src/platform/tests/test-link.c
@@ -12,6 +12,7 @@
#include <linux/if_tun.h>
#include "nm-glib-aux/nm-io-utils.h"
+#include "nm-libnm-core-intern/nm-ethtool-utils.h"
#include "platform/nmp-object.h"
#include "nm-platform/nmp-netns.h"
#include "platform/nm-platform-utils.h"