summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2021-02-01 09:53:59 +0100
committerThomas Haller <thaller@redhat.com>2021-02-03 13:46:30 +0100
commitfc2844e2632a6b6c6a82be88baf1905f0eb389cc (patch)
tree291363d26029517d404e67ca98ed973e9f40e00d
parent684019d6f15ffd4a113d9717bf8607ed1febef13 (diff)
downloadNetworkManager-fc2844e2632a6b6c6a82be88baf1905f0eb389cc.tar.gz
device: group boolean fields together
-rw-r--r--src/devices/nm-device.h20
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);