diff options
| author | Thomas Haller <thaller@redhat.com> | 2016-09-26 14:36:20 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2016-10-03 12:04:49 +0200 |
| commit | 92e9822e1be23b0a1964b8b16a1cd2c0c51ee59b (patch) | |
| tree | 14fee66a63559b2075880c58414433db1da25cd2 | |
| parent | 1f91c83a30ac0340e31eb166b8ee91e5ffa2695e (diff) | |
| download | NetworkManager-92e9822e1be23b0a1964b8b16a1cd2c0c51ee59b.tar.gz | |
core: forward-declare NMConfigDeviceStateData in nm-types.h
| -rw-r--r-- | src/nm-config.h | 4 | ||||
| -rw-r--r-- | src/nm-types.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/nm-config.h b/src/nm-config.h index 6ada27672d..07deeadbf3 100644 --- a/src/nm-config.h +++ b/src/nm-config.h @@ -195,14 +195,14 @@ typedef enum { NM_CONFIG_DEVICE_STATE_MANAGED_TYPE_MANAGED = 1, } NMConfigDeviceStateManagedType; -typedef struct { +struct _NMConfigDeviceStateData { int ifindex; NMConfigDeviceStateManagedType managed; /* the UUID of the last settings-connection active * on the device. */ const char *connection_uuid; -} NMConfigDeviceStateData; +}; NMConfigDeviceStateData *nm_config_device_state_load (NMConfig *self, int ifindex); diff --git a/src/nm-types.h b/src/nm-types.h index 1fbf043e7a..8d8c02af61 100644 --- a/src/nm-types.h +++ b/src/nm-types.h @@ -51,6 +51,7 @@ typedef struct _NMRouteManager NMRouteManager; typedef struct _NMSessionMonitor NMSessionMonitor; typedef struct _NMSleepMonitor NMSleepMonitor; typedef struct _NMLldpListener NMLldpListener; +typedef struct _NMConfigDeviceStateData NMConfigDeviceStateData; typedef enum { /* In priority order; higher number == higher priority */ |
