NetworkManager/src/settings
Thomas Haller 97db8306d9 libnm: rename MDns flag UNKNOWN to DEFAULT
"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*.

(cherry picked from commit 9d92848ada)
2018-10-19 18:39:32 +02:00
..
plugins libnm: rename MDns flag UNKNOWN to DEFAULT 2018-10-19 18:39:32 +02:00
nm-agent-manager.c c-list: re-import latest version of c-list.h from upstream 2017-11-28 12:04:15 +01:00
nm-agent-manager.h core: fix race of blocking autoconnect for no-secrets when a new secret-agent registers 2017-11-27 16:00:53 +01:00
nm-secret-agent.c c-list: re-import latest version of c-list.h from upstream 2017-11-28 12:04:15 +01:00
nm-secret-agent.h core: refactor NMSecretAgentCallId typedef not to be a pointer to struct 2017-11-24 17:05:03 +01:00
nm-settings-connection.c settings: preserve agent-owned secrets on connection update 2018-02-15 10:16:49 +01:00
nm-settings-connection.h settings: clear unsaved flag on new settings-connection 2017-12-20 15:40:05 +01:00
nm-settings-plugin.c ifcfg-rh: refactor nm_settings_plugin_add_connection() to return on error early 2017-10-27 10:28:41 +02:00
nm-settings-plugin.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-settings.c core: fix leaking connection in impl_settings_add_connection_helper() 2018-02-28 12:18:33 +01:00
nm-settings.h settings: track visible state as regular connection flags 2017-12-06 09:35:43 +01:00