device: group boolean fields together

This commit is contained in:
Beniamino Galvani 2021-02-01 09:53:59 +01:00 committed by Thomas Haller
parent 684019d6f1
commit fc2844e263
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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);