• Thomas Haller's avatar
    libnm: rename MDns flag UNKNOWN to DEFAULT · 9d92848a
    Thomas Haller authored
    "UNKNOWN" is not a good name. If you don't set the property
    in the connection explicitly, it should be "DEFAULT".
    
    Also, make "DEFAULT" -1. For one, that ensures that the enum's
    underlying integer type is signed. Otherwise, it's cumbersome
    to test "if (mdns >= DEFAULT)" because in case of unsigned types,
    the compiler will warn about the check always being true.
    Also, it allows for "NO" to be zero. These are no strong reasons,
    but I tend to think this is better.
    
    Also, don't make the property of NMSettingConnection a CONSTRUCT property.
    Initialize the default manually in the init function.
    
    Also, order the numeric values so that DEFAULT < NO < RESOLVE < YES with
    YES being largest because it enables *the most*.
    9d92848a
Name
Last commit
Last update
..
tests Loading commit data...
crypto.c Loading commit data...
crypto.h Loading commit data...
crypto_gnutls.c Loading commit data...
crypto_nss.c Loading commit data...
meson.build Loading commit data...
nm-connection-private.h Loading commit data...
nm-connection.c Loading commit data...
nm-connection.h Loading commit data...
nm-core-enum-types.c.template Loading commit data...
nm-core-enum-types.h.template Loading commit data...
nm-core-internal.h Loading commit data...
nm-core-types-internal.h Loading commit data...
nm-core-types.h Loading commit data...
nm-dbus-interface.h Loading commit data...
nm-dbus-utils.c Loading commit data...
nm-errors.c Loading commit data...
nm-errors.h Loading commit data...
nm-jansson.c Loading commit data...
nm-jansson.h Loading commit data...
nm-keyfile-internal.h Loading commit data...
nm-keyfile-reader.c Loading commit data...
nm-keyfile-utils.c Loading commit data...
nm-keyfile-utils.h Loading commit data...
nm-keyfile-writer.c Loading commit data...
nm-property-compare.c Loading commit data...
nm-property-compare.h Loading commit data...
nm-setting-8021x.c Loading commit data...
nm-setting-8021x.h Loading commit data...
nm-setting-adsl.c Loading commit data...
nm-setting-adsl.h Loading commit data...
nm-setting-bluetooth.c Loading commit data...
nm-setting-bluetooth.h Loading commit data...
nm-setting-bond.c Loading commit data...
nm-setting-bond.h Loading commit data...
nm-setting-bridge-port.c Loading commit data...
nm-setting-bridge-port.h Loading commit data...
nm-setting-bridge.c Loading commit data...
nm-setting-bridge.h Loading commit data...
nm-setting-cdma.c Loading commit data...
nm-setting-cdma.h Loading commit data...
nm-setting-connection.c Loading commit data...
nm-setting-connection.h Loading commit data...
nm-setting-dcb.c Loading commit data...
nm-setting-dcb.h Loading commit data...
nm-setting-dummy.c Loading commit data...
nm-setting-dummy.h Loading commit data...
nm-setting-generic.c Loading commit data...
nm-setting-generic.h Loading commit data...
nm-setting-gsm.c Loading commit data...
nm-setting-gsm.h Loading commit data...
nm-setting-infiniband.c Loading commit data...
nm-setting-infiniband.h Loading commit data...
nm-setting-ip-config.c Loading commit data...
nm-setting-ip-config.h Loading commit data...
nm-setting-ip-tunnel.c Loading commit data...
nm-setting-ip-tunnel.h Loading commit data...
nm-setting-ip4-config.c Loading commit data...
nm-setting-ip4-config.h Loading commit data...
nm-setting-ip6-config.c Loading commit data...
nm-setting-ip6-config.h Loading commit data...
nm-setting-macsec.c Loading commit data...
nm-setting-macsec.h Loading commit data...
nm-setting-macvlan.c Loading commit data...
nm-setting-macvlan.h Loading commit data...
nm-setting-olpc-mesh.c Loading commit data...
nm-setting-olpc-mesh.h Loading commit data...
nm-setting-ovs-bridge.c Loading commit data...
nm-setting-ovs-bridge.h Loading commit data...
nm-setting-ovs-interface.c Loading commit data...
nm-setting-ovs-interface.h Loading commit data...
nm-setting-ovs-patch.c Loading commit data...
nm-setting-ovs-patch.h Loading commit data...
nm-setting-ovs-port.c Loading commit data...
nm-setting-ovs-port.h Loading commit data...
nm-setting-ppp.c Loading commit data...
nm-setting-ppp.h Loading commit data...
nm-setting-pppoe.c Loading commit data...
nm-setting-pppoe.h Loading commit data...
nm-setting-private.h Loading commit data...
nm-setting-proxy.c Loading commit data...
nm-setting-proxy.h Loading commit data...
nm-setting-serial.c Loading commit data...
nm-setting-serial.h Loading commit data...
nm-setting-tc-config.c Loading commit data...
nm-setting-tc-config.h Loading commit data...
nm-setting-team-port.c Loading commit data...
nm-setting-team-port.h Loading commit data...
nm-setting-team.c Loading commit data...
nm-setting-team.h Loading commit data...
nm-setting-tun.c Loading commit data...
nm-setting-tun.h Loading commit data...
nm-setting-user.c Loading commit data...
nm-setting-user.h Loading commit data...
nm-setting-vlan.c Loading commit data...
nm-setting-vlan.h Loading commit data...
nm-setting-vpn.c Loading commit data...
nm-setting-vpn.h Loading commit data...
nm-setting-vxlan.c Loading commit data...
nm-setting-vxlan.h Loading commit data...
nm-setting-wimax.c Loading commit data...
nm-setting-wimax.h Loading commit data...
nm-setting-wired.c Loading commit data...
nm-setting-wired.h Loading commit data...
nm-setting-wireless-security.c Loading commit data...
nm-setting-wireless-security.h Loading commit data...
nm-setting-wireless.c Loading commit data...
nm-setting-wireless.h Loading commit data...
nm-setting.c Loading commit data...
nm-setting.h Loading commit data...
nm-simple-connection.c Loading commit data...
nm-simple-connection.h Loading commit data...
nm-utils-private.h Loading commit data...
nm-utils.c Loading commit data...
nm-utils.h Loading commit data...
nm-version.h Loading commit data...
nm-vpn-dbus-interface.h Loading commit data...
nm-vpn-editor-plugin.c Loading commit data...
nm-vpn-editor-plugin.h Loading commit data...
nm-vpn-plugin-info.c Loading commit data...
nm-vpn-plugin-info.h Loading commit data...