mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 02:35:25 +00:00
device: inline "struct Supplicant" to where it is used
This commit is contained in:
parent
984e94f01d
commit
098c0d5092
|
@ -45,18 +45,6 @@ _LOG_DECLARE_SELF(NMDeviceEthernet);
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
typedef struct Supplicant {
|
||||
NMSupplicantManager *mgr;
|
||||
NMSupplicantInterface *iface;
|
||||
|
||||
/* signal handler ids */
|
||||
gulong iface_state_id;
|
||||
gulong auth_state_id;
|
||||
|
||||
/* Timeouts and idles */
|
||||
guint con_timeout_id;
|
||||
} Supplicant;
|
||||
|
||||
typedef enum {
|
||||
DCB_WAIT_UNKNOWN = 0,
|
||||
/* Ensure carrier is up before enabling DCB */
|
||||
|
@ -75,7 +63,18 @@ typedef struct _NMDeviceEthernetPrivate {
|
|||
guint32 speed;
|
||||
gulong carrier_id;
|
||||
|
||||
Supplicant supplicant;
|
||||
struct {
|
||||
NMSupplicantManager *mgr;
|
||||
NMSupplicantInterface *iface;
|
||||
|
||||
/* signal handler ids */
|
||||
gulong iface_state_id;
|
||||
gulong auth_state_id;
|
||||
|
||||
/* Timeouts and idles */
|
||||
guint con_timeout_id;
|
||||
} supplicant;
|
||||
|
||||
guint supplicant_timeout_id;
|
||||
|
||||
/* s390 */
|
||||
|
|
|
@ -23,17 +23,6 @@ _LOG_DECLARE_SELF(NMDeviceMacsec);
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
typedef struct Supplicant {
|
||||
NMSupplicantManager *mgr;
|
||||
NMSupplicantInterface *iface;
|
||||
|
||||
/* signal handler ids */
|
||||
gulong iface_state_id;
|
||||
|
||||
/* Timeouts and idles */
|
||||
guint con_timeout_id;
|
||||
} Supplicant;
|
||||
|
||||
NM_GOBJECT_PROPERTIES_DEFINE (NMDeviceMacsec,
|
||||
PROP_SCI,
|
||||
PROP_CIPHER_SUITE,
|
||||
|
@ -53,7 +42,18 @@ typedef struct {
|
|||
NMPlatformLnkMacsec props;
|
||||
gulong parent_state_id;
|
||||
gulong parent_mtu_id;
|
||||
Supplicant supplicant;
|
||||
|
||||
struct {
|
||||
NMSupplicantManager *mgr;
|
||||
NMSupplicantInterface *iface;
|
||||
|
||||
/* signal handler ids */
|
||||
gulong iface_state_id;
|
||||
|
||||
/* Timeouts and idles */
|
||||
guint con_timeout_id;
|
||||
} supplicant;
|
||||
|
||||
guint supplicant_timeout_id;
|
||||
NMActRequestGetSecretsCallId *macsec_secrets_id;
|
||||
} NMDeviceMacsecPrivate;
|
||||
|
|
Loading…
Reference in a new issue