libnm: use _nm_setting_property_define_boolean() for boolean NMSetting properties

This commit is contained in:
Thomas Haller
2021-06-17 22:53:52 +02:00
parent d5c4378cdf
commit 22edf34ba3
17 changed files with 410 additions and 293 deletions

View File

@@ -3513,8 +3513,9 @@ finalize(GObject *object)
static void static void
nm_setting_802_1x_class_init(NMSetting8021xClass *klass) nm_setting_802_1x_class_init(NMSetting8021xClass *klass)
{ {
GObjectClass * object_class = G_OBJECT_CLASS(klass); GObjectClass * object_class = G_OBJECT_CLASS(klass);
NMSettingClass *setting_class = NM_SETTING_CLASS(klass); NMSettingClass *setting_class = NM_SETTING_CLASS(klass);
GArray * properties_override = _nm_sett_info_property_override_create_array();
g_type_class_add_private(klass, sizeof(NMSetting8021xPrivate)); g_type_class_add_private(klass, sizeof(NMSetting8021xPrivate));
@@ -4587,12 +4588,13 @@ nm_setting_802_1x_class_init(NMSetting8021xClass *klass)
* description: a boolean value. * description: a boolean value.
* ---end--- * ---end---
*/ */
obj_properties[PROP_SYSTEM_CA_CERTS] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_802_1X_SYSTEM_CA_CERTS, obj_properties,
"", NM_SETTING_802_1X_SYSTEM_CA_CERTS,
"", PROP_SYSTEM_CA_CERTS,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_802_1x_get_system_ca_certs);
/** /**
* NMSetting8021x:auth-timeout: * NMSetting8021x:auth-timeout:
@@ -4636,14 +4638,18 @@ nm_setting_802_1x_class_init(NMSetting8021xClass *klass)
* description: whether the 802.1X authentication is optional * description: whether the 802.1X authentication is optional
* ---end--- * ---end---
*/ */
obj_properties[PROP_OPTIONAL] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_802_1X_OPTIONAL, obj_properties,
"", NM_SETTING_802_1X_OPTIONAL,
"", PROP_OPTIONAL,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_802_1x_get_optional);
g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties); g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties);
_nm_setting_class_commit(setting_class, NM_META_SETTING_TYPE_802_1X); _nm_setting_class_commit_full(setting_class,
NM_META_SETTING_TYPE_802_1X,
NULL,
properties_override);
} }

View File

@@ -564,12 +564,13 @@ nm_setting_bridge_port_class_init(NMSettingBridgePortClass *klass)
* description: Hairpin mode of the bridge port. * description: Hairpin mode of the bridge port.
* ---end--- * ---end---
*/ */
obj_properties[PROP_HAIRPIN_MODE] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_BRIDGE_PORT_HAIRPIN_MODE, obj_properties,
"", NM_SETTING_BRIDGE_PORT_HAIRPIN_MODE,
"", PROP_HAIRPIN_MODE,
FALSE, FALSE,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_bridge_port_get_hairpin_mode);
/** /**
* NMSettingBridgePort:vlans: (type GPtrArray(NMBridgeVlan)) * NMSettingBridgePort:vlans: (type GPtrArray(NMBridgeVlan))

View File

@@ -1672,12 +1672,13 @@ nm_setting_bridge_class_init(NMSettingBridgeClass *klass)
* description: Span tree protocol participation. * description: Span tree protocol participation.
* ---end--- * ---end---
*/ */
obj_properties[PROP_STP] = g_param_spec_boolean(NM_SETTING_BRIDGE_STP, _nm_setting_property_define_boolean(properties_override,
"", obj_properties,
"", NM_SETTING_BRIDGE_STP,
NM_BRIDGE_STP_DEF, PROP_STP,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE NM_BRIDGE_STP_DEF,
| G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_bridge_get_stp);
/** /**
* NMSettingBridge:priority: * NMSettingBridge:priority:
@@ -1830,12 +1831,13 @@ nm_setting_bridge_class_init(NMSettingBridgeClass *klass)
* description: IGMP snooping support. * description: IGMP snooping support.
* ---end--- * ---end---
*/ */
obj_properties[PROP_MULTICAST_SNOOPING] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_BRIDGE_MULTICAST_SNOOPING, obj_properties,
"", NM_SETTING_BRIDGE_MULTICAST_SNOOPING,
"", PROP_MULTICAST_SNOOPING,
NM_BRIDGE_MULTICAST_SNOOPING_DEF, NM_BRIDGE_MULTICAST_SNOOPING_DEF,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_bridge_get_multicast_snooping);
/** /**
* NMSettingBridge:vlan-filtering: * NMSettingBridge:vlan-filtering:
@@ -1852,12 +1854,13 @@ nm_setting_bridge_class_init(NMSettingBridgeClass *klass)
* description: VLAN filtering support. * description: VLAN filtering support.
* ---end--- * ---end---
*/ */
obj_properties[PROP_VLAN_FILTERING] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_BRIDGE_VLAN_FILTERING, obj_properties,
"", NM_SETTING_BRIDGE_VLAN_FILTERING,
"", PROP_VLAN_FILTERING,
FALSE, FALSE,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_bridge_get_vlan_filtering);
/** /**
* NMSettingBridge:vlan-default-pvid: * NMSettingBridge:vlan-default-pvid:
@@ -1998,12 +2001,13 @@ nm_setting_bridge_class_init(NMSettingBridgeClass *klass)
* *
* Since: 1.24 * Since: 1.24
*/ */
obj_properties[PROP_VLAN_STATS_ENABLED] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_BRIDGE_VLAN_STATS_ENABLED, obj_properties,
"", NM_SETTING_BRIDGE_VLAN_STATS_ENABLED,
"", PROP_VLAN_STATS_ENABLED,
NM_BRIDGE_VLAN_STATS_ENABLED_DEF, NM_BRIDGE_VLAN_STATS_ENABLED_DEF,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_bridge_get_vlan_stats_enabled);
/** /**
* NMSettingBridge:multicast-router: * NMSettingBridge:multicast-router:
@@ -2048,12 +2052,13 @@ nm_setting_bridge_class_init(NMSettingBridgeClass *klass)
* *
* Since: 1.24 * Since: 1.24
*/ */
obj_properties[PROP_MULTICAST_QUERY_USE_IFADDR] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_BRIDGE_MULTICAST_QUERY_USE_IFADDR, obj_properties,
"", NM_SETTING_BRIDGE_MULTICAST_QUERY_USE_IFADDR,
"", PROP_MULTICAST_QUERY_USE_IFADDR,
NM_BRIDGE_MULTICAST_QUERY_USE_IFADDR_DEF, NM_BRIDGE_MULTICAST_QUERY_USE_IFADDR_DEF,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_bridge_get_multicast_query_use_ifaddr);
/** /**
* NMSettingBridge:multicast-querier: * NMSettingBridge:multicast-querier:
@@ -2070,12 +2075,13 @@ nm_setting_bridge_class_init(NMSettingBridgeClass *klass)
* *
* Since: 1.24 * Since: 1.24
*/ */
obj_properties[PROP_MULTICAST_QUERIER] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_BRIDGE_MULTICAST_QUERIER, obj_properties,
"", NM_SETTING_BRIDGE_MULTICAST_QUERIER,
"", PROP_MULTICAST_QUERIER,
NM_BRIDGE_MULTICAST_QUERIER_DEF, NM_BRIDGE_MULTICAST_QUERIER_DEF,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_bridge_get_multicast_querier);
/** /**
* NMSettingBridge:multicast-hash-max: * NMSettingBridge:multicast-hash-max:

View File

@@ -2200,12 +2200,13 @@ nm_setting_connection_class_init(NMSettingConnectionClass *klass)
* service's D-Bus interface with the right privileges, or %TRUE if the * service's D-Bus interface with the right privileges, or %TRUE if the
* connection is read-only and cannot be modified. * connection is read-only and cannot be modified.
**/ **/
obj_properties[PROP_READ_ONLY] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_CONNECTION_READ_ONLY, obj_properties,
"", NM_SETTING_CONNECTION_READ_ONLY,
"", PROP_READ_ONLY,
FALSE, FALSE,
G_PARAM_READWRITE | NM_SETTING_PARAM_FUZZY_IGNORE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_FUZZY_IGNORE,
nm_setting_connection_get_read_only);
/** /**
* NMSettingConnection:zone: * NMSettingConnection:zone:

View File

@@ -667,12 +667,13 @@ nm_setting_gsm_class_init(NMSettingGsmClass *klass)
* *
* Since: 1.22 * Since: 1.22
**/ **/
obj_properties[PROP_AUTO_CONFIG] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_GSM_AUTO_CONFIG, obj_properties,
"", NM_SETTING_GSM_AUTO_CONFIG,
"", PROP_AUTO_CONFIG,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_gsm_get_auto_config);
/** /**
* NMSettingGsm:number: * NMSettingGsm:number:
@@ -793,12 +794,13 @@ nm_setting_gsm_class_init(NMSettingGsmClass *klass)
* When %TRUE, only connections to the home network will be allowed. * When %TRUE, only connections to the home network will be allowed.
* Connections to roaming networks will not be made. * Connections to roaming networks will not be made.
**/ **/
obj_properties[PROP_HOME_ONLY] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_GSM_HOME_ONLY, obj_properties,
"", NM_SETTING_GSM_HOME_ONLY,
"", PROP_HOME_ONLY,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_gsm_get_home_only);
/** /**
* NMSettingGsm:device-id: * NMSettingGsm:device-id:

View File

@@ -5784,6 +5784,36 @@ _nm_sett_info_property_override_create_array_ip_config(void)
.to_dbus_fcn = _routing_rules_dbus_only_synth, .to_dbus_fcn = _routing_rules_dbus_only_synth,
.from_dbus_fcn = _routing_rules_dbus_only_set, )); .from_dbus_fcn = _routing_rules_dbus_only_set, ));
_nm_properties_override_gobj(properties_override,
obj_properties[PROP_IGNORE_AUTO_ROUTES],
&nm_sett_info_propert_type_boolean,
.to_dbus_data.get_boolean = (gboolean(*)(
NMSetting *)) nm_setting_ip_config_get_ignore_auto_routes);
_nm_properties_override_gobj(properties_override,
obj_properties[PROP_IGNORE_AUTO_DNS],
&nm_sett_info_propert_type_boolean,
.to_dbus_data.get_boolean = (gboolean(*)(
NMSetting *)) nm_setting_ip_config_get_ignore_auto_dns);
_nm_properties_override_gobj(properties_override,
obj_properties[PROP_DHCP_SEND_HOSTNAME],
&nm_sett_info_propert_type_boolean,
.to_dbus_data.get_boolean = (gboolean(*)(
NMSetting *)) nm_setting_ip_config_get_dhcp_send_hostname);
_nm_properties_override_gobj(properties_override,
obj_properties[PROP_NEVER_DEFAULT],
&nm_sett_info_propert_type_boolean,
.to_dbus_data.get_boolean = (gboolean(*)(
NMSetting *)) nm_setting_ip_config_get_never_default);
_nm_properties_override_gobj(properties_override,
obj_properties[PROP_MAY_FAIL],
&nm_sett_info_propert_type_boolean,
.to_dbus_data.get_boolean =
(gboolean(*)(NMSetting *)) nm_setting_ip_config_get_may_fail);
return properties_override; return properties_override;
} }

View File

@@ -654,8 +654,9 @@ finalize(GObject *object)
static void static void
nm_setting_ip_tunnel_class_init(NMSettingIPTunnelClass *klass) nm_setting_ip_tunnel_class_init(NMSettingIPTunnelClass *klass)
{ {
GObjectClass * object_class = G_OBJECT_CLASS(klass); GObjectClass * object_class = G_OBJECT_CLASS(klass);
NMSettingClass *setting_class = NM_SETTING_CLASS(klass); NMSettingClass *setting_class = NM_SETTING_CLASS(klass);
GArray * properties_override = _nm_sett_info_property_override_create_array();
g_type_class_add_private(klass, sizeof(NMSettingIPTunnelPrivate)); g_type_class_add_private(klass, sizeof(NMSettingIPTunnelPrivate));
@@ -769,12 +770,13 @@ nm_setting_ip_tunnel_class_init(NMSettingIPTunnelClass *klass)
* *
* Since: 1.2 * Since: 1.2
**/ **/
obj_properties[PROP_PATH_MTU_DISCOVERY] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_IP_TUNNEL_PATH_MTU_DISCOVERY, obj_properties,
"", NM_SETTING_IP_TUNNEL_PATH_MTU_DISCOVERY,
"", PROP_PATH_MTU_DISCOVERY,
TRUE, TRUE,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_ip_tunnel_get_path_mtu_discovery);
/** /**
* NMSettingIPTunnel:input-key: * NMSettingIPTunnel:input-key:
@@ -879,5 +881,8 @@ nm_setting_ip_tunnel_class_init(NMSettingIPTunnelClass *klass)
g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties); g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties);
_nm_setting_class_commit(setting_class, NM_META_SETTING_TYPE_IP_TUNNEL); _nm_setting_class_commit_full(setting_class,
NM_META_SETTING_TYPE_IP_TUNNEL,
NULL,
properties_override);
} }

View File

@@ -529,8 +529,9 @@ finalize(GObject *object)
static void static void
nm_setting_macsec_class_init(NMSettingMacsecClass *klass) nm_setting_macsec_class_init(NMSettingMacsecClass *klass)
{ {
GObjectClass * object_class = G_OBJECT_CLASS(klass); GObjectClass * object_class = G_OBJECT_CLASS(klass);
NMSettingClass *setting_class = NM_SETTING_CLASS(klass); NMSettingClass *setting_class = NM_SETTING_CLASS(klass);
GArray * properties_override = _nm_sett_info_property_override_create_array();
g_type_class_add_private(klass, sizeof(NMSettingMacsecPrivate)); g_type_class_add_private(klass, sizeof(NMSettingMacsecPrivate));
@@ -582,11 +583,13 @@ nm_setting_macsec_class_init(NMSettingMacsecClass *klass)
* *
* Since: 1.6 * Since: 1.6
**/ **/
obj_properties[PROP_ENCRYPT] = g_param_spec_boolean(NM_SETTING_MACSEC_ENCRYPT, _nm_setting_property_define_boolean(properties_override,
"", obj_properties,
"", NM_SETTING_MACSEC_ENCRYPT,
TRUE, PROP_ENCRYPT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); TRUE,
NM_SETTING_PARAM_NONE,
nm_setting_macsec_get_encrypt);
/** /**
* NMSettingMacsec:mka-cak: * NMSettingMacsec:mka-cak:
@@ -673,14 +676,18 @@ nm_setting_macsec_class_init(NMSettingMacsecClass *klass)
* *
* Since: 1.12 * Since: 1.12
**/ **/
obj_properties[PROP_SEND_SCI] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_MACSEC_SEND_SCI, obj_properties,
"", NM_SETTING_MACSEC_SEND_SCI,
"", PROP_SEND_SCI,
TRUE, TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_macsec_get_send_sci);
g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties); g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties);
_nm_setting_class_commit(setting_class, NM_META_SETTING_TYPE_MACSEC); _nm_setting_class_commit_full(setting_class,
NM_META_SETTING_TYPE_MACSEC,
NULL,
properties_override);
} }

View File

@@ -269,8 +269,9 @@ finalize(GObject *object)
static void static void
nm_setting_macvlan_class_init(NMSettingMacvlanClass *klass) nm_setting_macvlan_class_init(NMSettingMacvlanClass *klass)
{ {
GObjectClass * object_class = G_OBJECT_CLASS(klass); GObjectClass * object_class = G_OBJECT_CLASS(klass);
NMSettingClass *setting_class = NM_SETTING_CLASS(klass); NMSettingClass *setting_class = NM_SETTING_CLASS(klass);
GArray * properties_override = _nm_sett_info_property_override_create_array();
g_type_class_add_private(klass, sizeof(NMSettingMacvlanPrivate)); g_type_class_add_private(klass, sizeof(NMSettingMacvlanPrivate));
@@ -321,12 +322,13 @@ nm_setting_macvlan_class_init(NMSettingMacvlanClass *klass)
* *
* Since: 1.2 * Since: 1.2
**/ **/
obj_properties[PROP_PROMISCUOUS] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_MACVLAN_PROMISCUOUS, obj_properties,
"", NM_SETTING_MACVLAN_PROMISCUOUS,
"", PROP_PROMISCUOUS,
TRUE, TRUE,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_macvlan_get_promiscuous);
/** /**
* NMSettingMacvlan:tap: * NMSettingMacvlan:tap:
@@ -335,14 +337,18 @@ nm_setting_macvlan_class_init(NMSettingMacvlanClass *klass)
* *
* Since: 1.2 * Since: 1.2
**/ **/
obj_properties[PROP_TAP] = g_param_spec_boolean(NM_SETTING_MACVLAN_TAP, _nm_setting_property_define_boolean(properties_override,
"", obj_properties,
"", NM_SETTING_MACVLAN_TAP,
FALSE, PROP_TAP,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE FALSE,
| G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_macvlan_get_tap);
g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties); g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties);
_nm_setting_class_commit(setting_class, NM_META_SETTING_TYPE_MACVLAN); _nm_setting_class_commit_full(setting_class,
NM_META_SETTING_TYPE_MACVLAN,
NULL,
properties_override);
} }

View File

@@ -289,8 +289,9 @@ finalize(GObject *object)
static void static void
nm_setting_ovs_bridge_class_init(NMSettingOvsBridgeClass *klass) nm_setting_ovs_bridge_class_init(NMSettingOvsBridgeClass *klass)
{ {
GObjectClass * object_class = G_OBJECT_CLASS(klass); GObjectClass * object_class = G_OBJECT_CLASS(klass);
NMSettingClass *setting_class = NM_SETTING_CLASS(klass); NMSettingClass *setting_class = NM_SETTING_CLASS(klass);
GArray * properties_override = _nm_sett_info_property_override_create_array();
object_class->get_property = get_property; object_class->get_property = get_property;
object_class->set_property = set_property; object_class->set_property = set_property;
@@ -319,12 +320,13 @@ nm_setting_ovs_bridge_class_init(NMSettingOvsBridgeClass *klass)
* *
* Since: 1.10 * Since: 1.10
**/ **/
obj_properties[PROP_MCAST_SNOOPING_ENABLE] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_OVS_BRIDGE_MCAST_SNOOPING_ENABLE, obj_properties,
"", NM_SETTING_OVS_BRIDGE_MCAST_SNOOPING_ENABLE,
"", PROP_MCAST_SNOOPING_ENABLE,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_ovs_bridge_get_mcast_snooping_enable);
/** /**
* NMSettingOvsBridge:rstp-enable: * NMSettingOvsBridge:rstp-enable:
@@ -333,12 +335,13 @@ nm_setting_ovs_bridge_class_init(NMSettingOvsBridgeClass *klass)
* *
* Since: 1.10 * Since: 1.10
**/ **/
obj_properties[PROP_RSTP_ENABLE] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_OVS_BRIDGE_RSTP_ENABLE, obj_properties,
"", NM_SETTING_OVS_BRIDGE_RSTP_ENABLE,
"", PROP_RSTP_ENABLE,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_ovs_bridge_get_rstp_enable);
/** /**
* NMSettingOvsBridge:stp-enable: * NMSettingOvsBridge:stp-enable:
@@ -347,12 +350,13 @@ nm_setting_ovs_bridge_class_init(NMSettingOvsBridgeClass *klass)
* *
* Since: 1.10 * Since: 1.10
**/ **/
obj_properties[PROP_STP_ENABLE] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_OVS_BRIDGE_STP_ENABLE, obj_properties,
"", NM_SETTING_OVS_BRIDGE_STP_ENABLE,
"", PROP_STP_ENABLE,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_ovs_bridge_get_stp_enable);
/** /**
* NMSettingOvsBridge:datapath-type: * NMSettingOvsBridge:datapath-type:
@@ -370,5 +374,8 @@ nm_setting_ovs_bridge_class_init(NMSettingOvsBridgeClass *klass)
g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties); g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties);
_nm_setting_class_commit(setting_class, NM_META_SETTING_TYPE_OVS_BRIDGE); _nm_setting_class_commit_full(setting_class,
NM_META_SETTING_TYPE_OVS_BRIDGE,
NULL,
properties_override);
} }

View File

@@ -534,8 +534,9 @@ nm_setting_ppp_new(void)
static void static void
nm_setting_ppp_class_init(NMSettingPppClass *klass) nm_setting_ppp_class_init(NMSettingPppClass *klass)
{ {
GObjectClass * object_class = G_OBJECT_CLASS(klass); GObjectClass * object_class = G_OBJECT_CLASS(klass);
NMSettingClass *setting_class = NM_SETTING_CLASS(klass); NMSettingClass *setting_class = NM_SETTING_CLASS(klass);
GArray * properties_override = _nm_sett_info_property_override_create_array();
g_type_class_add_private(klass, sizeof(NMSettingPppPrivate)); g_type_class_add_private(klass, sizeof(NMSettingPppPrivate));
@@ -551,107 +552,117 @@ nm_setting_ppp_class_init(NMSettingPppClass *klass)
* authenticate itself to the client. If %FALSE, require authentication * authenticate itself to the client. If %FALSE, require authentication
* from the remote side. In almost all cases, this should be %TRUE. * from the remote side. In almost all cases, this should be %TRUE.
**/ **/
obj_properties[PROP_NOAUTH] = g_param_spec_boolean(NM_SETTING_PPP_NOAUTH, _nm_setting_property_define_boolean(properties_override,
"", obj_properties,
"", NM_SETTING_PPP_NOAUTH,
TRUE, PROP_NOAUTH,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); TRUE,
NM_SETTING_PARAM_NONE,
nm_setting_ppp_get_noauth);
/** /**
* NMSettingPpp:refuse-eap: * NMSettingPpp:refuse-eap:
* *
* If %TRUE, the EAP authentication method will not be used. * If %TRUE, the EAP authentication method will not be used.
**/ **/
obj_properties[PROP_REFUSE_EAP] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_PPP_REFUSE_EAP, obj_properties,
"", NM_SETTING_PPP_REFUSE_EAP,
"", PROP_REFUSE_EAP,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_ppp_get_refuse_eap);
/** /**
* NMSettingPpp:refuse-pap: * NMSettingPpp:refuse-pap:
* *
* If %TRUE, the PAP authentication method will not be used. * If %TRUE, the PAP authentication method will not be used.
**/ **/
obj_properties[PROP_REFUSE_PAP] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_PPP_REFUSE_PAP, obj_properties,
"", NM_SETTING_PPP_REFUSE_PAP,
"", PROP_REFUSE_PAP,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_ppp_get_refuse_pap);
/** /**
* NMSettingPpp:refuse-chap: * NMSettingPpp:refuse-chap:
* *
* If %TRUE, the CHAP authentication method will not be used. * If %TRUE, the CHAP authentication method will not be used.
**/ **/
obj_properties[PROP_REFUSE_CHAP] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_PPP_REFUSE_CHAP, obj_properties,
"", NM_SETTING_PPP_REFUSE_CHAP,
"", PROP_REFUSE_CHAP,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_ppp_get_refuse_chap);
/** /**
* NMSettingPpp:refuse-mschap: * NMSettingPpp:refuse-mschap:
* *
* If %TRUE, the MSCHAP authentication method will not be used. * If %TRUE, the MSCHAP authentication method will not be used.
**/ **/
obj_properties[PROP_REFUSE_MSCHAP] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_PPP_REFUSE_MSCHAP, obj_properties,
"", NM_SETTING_PPP_REFUSE_MSCHAP,
"", PROP_REFUSE_MSCHAP,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_ppp_get_refuse_mschap);
/** /**
* NMSettingPpp:refuse-mschapv2: * NMSettingPpp:refuse-mschapv2:
* *
* If %TRUE, the MSCHAPv2 authentication method will not be used. * If %TRUE, the MSCHAPv2 authentication method will not be used.
**/ **/
obj_properties[PROP_REFUSE_MSCHAPV2] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_PPP_REFUSE_MSCHAPV2, obj_properties,
"", NM_SETTING_PPP_REFUSE_MSCHAPV2,
"", PROP_REFUSE_MSCHAPV2,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_ppp_get_refuse_mschapv2);
/** /**
* NMSettingPpp:nobsdcomp: * NMSettingPpp:nobsdcomp:
* *
* If %TRUE, BSD compression will not be requested. * If %TRUE, BSD compression will not be requested.
**/ **/
obj_properties[PROP_NOBSDCOMP] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_PPP_NOBSDCOMP, obj_properties,
"", NM_SETTING_PPP_NOBSDCOMP,
"", PROP_NOBSDCOMP,
FALSE, FALSE,
G_PARAM_READWRITE | NM_SETTING_PARAM_FUZZY_IGNORE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_FUZZY_IGNORE,
nm_setting_ppp_get_nobsdcomp);
/** /**
* NMSettingPpp:nodeflate: * NMSettingPpp:nodeflate:
* *
* If %TRUE, "deflate" compression will not be requested. * If %TRUE, "deflate" compression will not be requested.
**/ **/
obj_properties[PROP_NODEFLATE] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_PPP_NODEFLATE, obj_properties,
"", NM_SETTING_PPP_NODEFLATE,
"", PROP_NODEFLATE,
FALSE, FALSE,
G_PARAM_READWRITE | NM_SETTING_PARAM_FUZZY_IGNORE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_FUZZY_IGNORE,
nm_setting_ppp_get_nodeflate);
/** /**
* NMSettingPpp:no-vj-comp: * NMSettingPpp:no-vj-comp:
* *
* If %TRUE, Van Jacobsen TCP header compression will not be requested. * If %TRUE, Van Jacobsen TCP header compression will not be requested.
**/ **/
obj_properties[PROP_NO_VJ_COMP] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_PPP_NO_VJ_COMP, obj_properties,
"", NM_SETTING_PPP_NO_VJ_COMP,
"", PROP_NO_VJ_COMP,
FALSE, FALSE,
G_PARAM_READWRITE | NM_SETTING_PARAM_FUZZY_IGNORE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_FUZZY_IGNORE,
nm_setting_ppp_get_no_vj_comp);
/** /**
* NMSettingPpp:require-mppe: * NMSettingPpp:require-mppe:
@@ -661,12 +672,13 @@ nm_setting_ppp_class_init(NMSettingPppClass *klass)
* session will fail. Note that MPPE is not used on mobile broadband * session will fail. Note that MPPE is not used on mobile broadband
* connections. * connections.
**/ **/
obj_properties[PROP_REQUIRE_MPPE] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_PPP_REQUIRE_MPPE, obj_properties,
"", NM_SETTING_PPP_REQUIRE_MPPE,
"", PROP_REQUIRE_MPPE,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_ppp_get_require_mppe);
/** /**
* NMSettingPpp:require-mppe-128: * NMSettingPpp:require-mppe-128:
@@ -675,12 +687,13 @@ nm_setting_ppp_class_init(NMSettingPppClass *klass)
* required for the PPP session, and the "require-mppe" property must also * required for the PPP session, and the "require-mppe" property must also
* be set to %TRUE. If 128-bit MPPE is not available the session will fail. * be set to %TRUE. If 128-bit MPPE is not available the session will fail.
**/ **/
obj_properties[PROP_REQUIRE_MPPE_128] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_PPP_REQUIRE_MPPE_128, obj_properties,
"", NM_SETTING_PPP_REQUIRE_MPPE_128,
"", PROP_REQUIRE_MPPE_128,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_ppp_get_require_mppe_128);
/** /**
* NMSettingPpp:mppe-stateful: * NMSettingPpp:mppe-stateful:
@@ -688,12 +701,13 @@ nm_setting_ppp_class_init(NMSettingPppClass *klass)
* If %TRUE, stateful MPPE is used. See pppd documentation for more * If %TRUE, stateful MPPE is used. See pppd documentation for more
* information on stateful MPPE. * information on stateful MPPE.
**/ **/
obj_properties[PROP_MPPE_STATEFUL] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_PPP_MPPE_STATEFUL, obj_properties,
"", NM_SETTING_PPP_MPPE_STATEFUL,
"", PROP_MPPE_STATEFUL,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_ppp_get_mppe_stateful);
/** /**
* NMSettingPpp:crtscts: * NMSettingPpp:crtscts:
@@ -702,11 +716,13 @@ nm_setting_ppp_class_init(NMSettingPppClass *klass)
* flow control with RTS and CTS signals. This value should normally be set * flow control with RTS and CTS signals. This value should normally be set
* to %FALSE. * to %FALSE.
**/ **/
obj_properties[PROP_CRTSCTS] = g_param_spec_boolean(NM_SETTING_PPP_CRTSCTS, _nm_setting_property_define_boolean(properties_override,
"", obj_properties,
"", NM_SETTING_PPP_CRTSCTS,
FALSE, PROP_CRTSCTS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); FALSE,
NM_SETTING_PARAM_NONE,
nm_setting_ppp_get_crtscts);
/** /**
* NMSettingPpp:baud: * NMSettingPpp:baud:
@@ -790,5 +806,8 @@ nm_setting_ppp_class_init(NMSettingPppClass *klass)
g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties); g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties);
_nm_setting_class_commit(setting_class, NM_META_SETTING_TYPE_PPP); _nm_setting_class_commit_full(setting_class,
NM_META_SETTING_TYPE_PPP,
NULL,
properties_override);
} }

View File

@@ -295,8 +295,9 @@ finalize(GObject *object)
static void static void
nm_setting_proxy_class_init(NMSettingProxyClass *klass) nm_setting_proxy_class_init(NMSettingProxyClass *klass)
{ {
GObjectClass * object_class = G_OBJECT_CLASS(klass); GObjectClass * object_class = G_OBJECT_CLASS(klass);
NMSettingClass *setting_class = NM_SETTING_CLASS(klass); NMSettingClass *setting_class = NM_SETTING_CLASS(klass);
GArray * properties_override = _nm_sett_info_property_override_create_array();
g_type_class_add_private(klass, sizeof(NMSettingProxyPrivate)); g_type_class_add_private(klass, sizeof(NMSettingProxyPrivate));
@@ -344,12 +345,13 @@ nm_setting_proxy_class_init(NMSettingProxyClass *klass)
* description: Whether the proxy configuration is for browser only. * description: Whether the proxy configuration is for browser only.
* ---end--- * ---end---
*/ */
obj_properties[PROP_BROWSER_ONLY] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_PROXY_BROWSER_ONLY, obj_properties,
"", NM_SETTING_PROXY_BROWSER_ONLY,
"", PROP_BROWSER_ONLY,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_proxy_get_browser_only);
/** /**
* NMSettingProxy:pac-url: * NMSettingProxy:pac-url:
@@ -394,5 +396,8 @@ nm_setting_proxy_class_init(NMSettingProxyClass *klass)
g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties); g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties);
_nm_setting_class_commit(setting_class, NM_META_SETTING_TYPE_PROXY); _nm_setting_class_commit_full(setting_class,
NM_META_SETTING_TYPE_PROXY,
NULL,
properties_override);
} }

View File

@@ -300,8 +300,9 @@ finalize(GObject *object)
static void static void
nm_setting_tun_class_init(NMSettingTunClass *klass) nm_setting_tun_class_init(NMSettingTunClass *klass)
{ {
GObjectClass * object_class = G_OBJECT_CLASS(klass); GObjectClass * object_class = G_OBJECT_CLASS(klass);
NMSettingClass *setting_class = NM_SETTING_CLASS(klass); NMSettingClass *setting_class = NM_SETTING_CLASS(klass);
GArray * properties_override = _nm_sett_info_property_override_create_array();
g_type_class_add_private(klass, sizeof(NMSettingTunPrivate)); g_type_class_add_private(klass, sizeof(NMSettingTunPrivate));
@@ -368,12 +369,13 @@ nm_setting_tun_class_init(NMSettingTunClass *klass)
* *
* Since: 1.2 * Since: 1.2
*/ */
obj_properties[PROP_PI] = g_param_spec_boolean(NM_SETTING_TUN_PI, _nm_setting_property_define_boolean(properties_override,
"", obj_properties,
"", NM_SETTING_TUN_PI,
FALSE, PROP_PI,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE FALSE,
| G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_tun_get_pi);
/** /**
* NMSettingTun:vnet-hdr: * NMSettingTun:vnet-hdr:
@@ -383,12 +385,13 @@ nm_setting_tun_class_init(NMSettingTunClass *klass)
* *
* Since: 1.2 * Since: 1.2
*/ */
obj_properties[PROP_VNET_HDR] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_TUN_VNET_HDR, obj_properties,
"", NM_SETTING_TUN_VNET_HDR,
"", PROP_VNET_HDR,
FALSE, FALSE,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_tun_get_vnet_hdr);
/** /**
* NMSettingTun:multi-queue: * NMSettingTun:multi-queue:
@@ -400,14 +403,18 @@ nm_setting_tun_class_init(NMSettingTunClass *klass)
* *
* Since: 1.2 * Since: 1.2
*/ */
obj_properties[PROP_MULTI_QUEUE] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_TUN_MULTI_QUEUE, obj_properties,
"", NM_SETTING_TUN_MULTI_QUEUE,
"", PROP_MULTI_QUEUE,
FALSE, FALSE,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_tun_get_multi_queue);
g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties); g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties);
_nm_setting_class_commit(setting_class, NM_META_SETTING_TYPE_TUN); _nm_setting_class_commit_full(setting_class,
NM_META_SETTING_TYPE_TUN,
NULL,
properties_override);
} }

View File

@@ -1172,12 +1172,13 @@ nm_setting_vpn_class_init(NMSettingVpnClass *klass)
* the VPN will attempt to stay connected across link changes and outages, * the VPN will attempt to stay connected across link changes and outages,
* until explicitly disconnected. * until explicitly disconnected.
**/ **/
obj_properties[PROP_PERSISTENT] = _nm_setting_property_define_boolean(properties_override,
g_param_spec_boolean(NM_SETTING_VPN_PERSISTENT, obj_properties,
"", NM_SETTING_VPN_PERSISTENT,
"", PROP_PERSISTENT,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_NONE,
nm_setting_vpn_get_persistent);
/** /**
* NMSettingVpn:data: (type GHashTable(utf8,utf8)): * NMSettingVpn:data: (type GHashTable(utf8,utf8)):

View File

@@ -570,8 +570,9 @@ finalize(GObject *object)
static void static void
nm_setting_vxlan_class_init(NMSettingVxlanClass *klass) nm_setting_vxlan_class_init(NMSettingVxlanClass *klass)
{ {
GObjectClass * object_class = G_OBJECT_CLASS(klass); GObjectClass * object_class = G_OBJECT_CLASS(klass);
NMSettingClass *setting_class = NM_SETTING_CLASS(klass); NMSettingClass *setting_class = NM_SETTING_CLASS(klass);
GArray * properties_override = _nm_sett_info_property_override_create_array();
g_type_class_add_private(klass, sizeof(NMSettingVxlanPrivate)); g_type_class_add_private(klass, sizeof(NMSettingVxlanPrivate));
@@ -764,12 +765,13 @@ nm_setting_vxlan_class_init(NMSettingVxlanClass *klass)
* *
* Since: 1.2 * Since: 1.2
**/ **/
obj_properties[PROP_PROXY] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_VXLAN_PROXY, obj_properties,
"", NM_SETTING_VXLAN_PROXY,
"", PROP_PROXY,
FALSE, FALSE,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_vxlan_get_proxy);
/** /**
* NMSettingVxlan:learning: * NMSettingVxlan:learning:
@@ -779,12 +781,14 @@ nm_setting_vxlan_class_init(NMSettingVxlanClass *klass)
* *
* Since: 1.2 * Since: 1.2
**/ **/
obj_properties[PROP_LEARNING] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_VXLAN_LEARNING, obj_properties,
"", NM_SETTING_VXLAN_LEARNING,
"", PROP_LEARNING,
TRUE, TRUE,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_vxlan_get_learning);
/** /**
* NMSettingVxlan:rsc: * NMSettingVxlan:rsc:
* *
@@ -792,12 +796,14 @@ nm_setting_vxlan_class_init(NMSettingVxlanClass *klass)
* *
* Since: 1.2 * Since: 1.2
**/ **/
obj_properties[PROP_RSC] = g_param_spec_boolean(NM_SETTING_VXLAN_RSC, _nm_setting_property_define_boolean(properties_override,
"", obj_properties,
"", NM_SETTING_VXLAN_RSC,
FALSE, PROP_RSC,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE FALSE,
| G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_vxlan_get_rsc);
/** /**
* NMSettingVxlan:l2-miss: * NMSettingVxlan:l2-miss:
* *
@@ -805,12 +811,13 @@ nm_setting_vxlan_class_init(NMSettingVxlanClass *klass)
* *
* Since: 1.2 * Since: 1.2
**/ **/
obj_properties[PROP_L2_MISS] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_VXLAN_L2_MISS, obj_properties,
"", NM_SETTING_VXLAN_L2_MISS,
"", PROP_L2_MISS,
FALSE, FALSE,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_vxlan_get_l2_miss);
/** /**
* NMSettingVxlan:l3-miss: * NMSettingVxlan:l3-miss:
@@ -819,14 +826,18 @@ nm_setting_vxlan_class_init(NMSettingVxlanClass *klass)
* *
* Since: 1.2 * Since: 1.2
**/ **/
obj_properties[PROP_L3_MISS] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_VXLAN_L3_MISS, obj_properties,
"", NM_SETTING_VXLAN_L3_MISS,
"", PROP_L3_MISS,
FALSE, FALSE,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_vxlan_get_l3_miss);
g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties); g_object_class_install_properties(object_class, _PROPERTY_ENUMS_LAST, obj_properties);
_nm_setting_class_commit(setting_class, NM_META_SETTING_TYPE_VXLAN); _nm_setting_class_commit_full(setting_class,
NM_META_SETTING_TYPE_VXLAN,
NULL,
properties_override);
} }

View File

@@ -2514,12 +2514,13 @@ nm_setting_wireguard_class_init(NMSettingWireGuardClass *klass)
* *
* Since: 1.16 * Since: 1.16
**/ **/
obj_properties[PROP_PEER_ROUTES] = g_param_spec_boolean( _nm_setting_property_define_boolean(properties_override,
NM_SETTING_WIREGUARD_PEER_ROUTES, obj_properties,
"", NM_SETTING_WIREGUARD_PEER_ROUTES,
"", PROP_PEER_ROUTES,
TRUE, TRUE,
G_PARAM_READWRITE | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); NM_SETTING_PARAM_INFERRABLE,
nm_setting_wireguard_get_peer_routes);
/** /**
* NMSettingWireGuard:mtu: * NMSettingWireGuard:mtu:

View File

@@ -1791,11 +1791,13 @@ nm_setting_wireless_class_init(NMSettingWirelessClass *klass)
* description: Whether the network hides the SSID. * description: Whether the network hides the SSID.
* ---end--- * ---end---
*/ */
obj_properties[PROP_HIDDEN] = g_param_spec_boolean(NM_SETTING_WIRELESS_HIDDEN, _nm_setting_property_define_boolean(properties_override,
"", obj_properties,
"", NM_SETTING_WIRELESS_HIDDEN,
FALSE, PROP_HIDDEN,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); FALSE,
NM_SETTING_PARAM_NONE,
nm_setting_wireless_get_hidden);
/** /**
* NMSettingWireless:powersave: * NMSettingWireless:powersave: