diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2021-02-01 09:53:59 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-02-03 13:46:30 +0100 |
commit | fc2844e2632a6b6c6a82be88baf1905f0eb389cc (patch) | |
tree | 291363d26029517d404e67ca98ed973e9f40e00d | |
parent | 684019d6f15ffd4a113d9717bf8607ed1febef13 (diff) | |
download | NetworkManager-fc2844e2632a6b6c6a82be88baf1905f0eb389cc.tar.gz |
device: group boolean fields together
-rw-r--r-- | src/devices/nm-device.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/nm-device.h b/src/devices/nm-device.h index dc3dd34b01..72777d0aaf 100644 --- a/src/devices/nm-device.h +++ b/src/devices/nm-device.h @@ -244,6 +244,16 @@ typedef struct _NMDeviceClass { */ bool mtu_force_set : 1; + /* Control whether to call stage1 and stage2 callbacks also for assuming + * a device or for external activations. In this case, the callback must + * take care not to touch the device's configuration. */ + bool act_stage1_prepare_also_for_external_or_assume : 1; + bool act_stage2_config_also_for_external_or_assume : 1; + + bool act_stage1_prepare_set_hwaddr_ethernet : 1; + + bool can_reapply_change_ovs_external_ids : 1; + void (*state_changed)(NMDevice * device, NMDeviceState new_state, NMDeviceState old_state, @@ -449,16 +459,6 @@ typedef struct _NMDeviceClass { gboolean (*set_platform_mtu)(NMDevice *self, guint32 mtu); - /* Control whether to call stage1 and stage2 callbacks also for assuming - * a device or for external activations. In this case, the callback must - * take care not to touch the device's configuration. */ - bool act_stage1_prepare_also_for_external_or_assume : 1; - bool act_stage2_config_also_for_external_or_assume : 1; - - bool act_stage1_prepare_set_hwaddr_ethernet : 1; - - bool can_reapply_change_ovs_external_ids : 1; - } NMDeviceClass; GType nm_device_get_type(void); |