summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-03-07 20:46:37 +0100
committerThomas Haller <thaller@redhat.com>2023-03-21 15:58:44 +0100
commitffa394832d0101dfec49b76c1dbd3f297050a692 (patch)
tree0371fc3952771a8a2396aaf64f65287386361a64
parent7fa63c23b44ad415a4418de74c70db0eb832f2c2 (diff)
platform: move NMPlatformSignalChangeType to "nmp-base.h" header
-rw-r--r--src/libnm-platform/nm-platform.h7
-rw-r--r--src/libnm-platform/nmp-base.h9
2 files changed, 9 insertions, 7 deletions
diff --git a/src/libnm-platform/nm-platform.h b/src/libnm-platform/nm-platform.h
index 4263b6479c..4d54459ed4 100644
--- a/src/libnm-platform/nm-platform.h
+++ b/src/libnm-platform/nm-platform.h
@@ -243,13 +243,6 @@ typedef enum {
guint _nm_platform_signal_id_get(NMPlatformSignalIdType signal_type);
-typedef enum {
- NM_PLATFORM_SIGNAL_NONE,
- NM_PLATFORM_SIGNAL_ADDED,
- NM_PLATFORM_SIGNAL_CHANGED,
- NM_PLATFORM_SIGNAL_REMOVED,
-} NMPlatformSignalChangeType;
-
/* Default value for adding an IPv4 route. This is also what iproute2 does.
* Note that contrary to IPv6, you can add routes with metric 0 and it is even
* the default.
diff --git a/src/libnm-platform/nmp-base.h b/src/libnm-platform/nmp-base.h
index 80d254b261..4802b03553 100644
--- a/src/libnm-platform/nmp-base.h
+++ b/src/libnm-platform/nmp-base.h
@@ -28,6 +28,15 @@
/*****************************************************************************/
typedef enum {
+ NM_PLATFORM_SIGNAL_NONE,
+ NM_PLATFORM_SIGNAL_ADDED,
+ NM_PLATFORM_SIGNAL_CHANGED,
+ NM_PLATFORM_SIGNAL_REMOVED,
+} NMPlatformSignalChangeType;
+
+/*****************************************************************************/
+
+typedef enum {
NM_PLATFORM_LINK_DUPLEX_UNKNOWN,
NM_PLATFORM_LINK_DUPLEX_HALF,
NM_PLATFORM_LINK_DUPLEX_FULL,