NetworkManager/src/settings/plugins/ifcfg-rh
Thomas Haller 9d92848ada 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*.
2018-01-09 14:24:53 +01:00
..
tests tests: use NMTST_EXPECT*() macros 2018-01-08 12:38:54 +01:00
meson.build build: add initial support for meson build system 2017-12-13 15:48:50 +01:00
nm-ifcfg-rh.conf ifcfg-rh: refactor dbus policy 2017-06-15 13:20:55 +02:00
nm-ifcfg-rh.xml dbus: fix up the XML formatting 2016-04-05 14:37:51 +02:00
nm-inotify-helper.c ifcfg-rh: remove the watch on finalize 2017-12-18 13:29:32 +01:00
nm-inotify-helper.h ifcfg-rh: add and use nm_inotify_helper_clear_watch() helper 2017-12-05 19:57:24 +01:00
nms-ifcfg-rh-common.h ifcfg-rh: rename files 2016-10-11 11:37:46 +02:00
nms-ifcfg-rh-connection.c settings: clear unsaved flag on new settings-connection 2017-12-20 15:38:57 +01:00
nms-ifcfg-rh-connection.h build: don't add subdirectories to include search path but require qualified include 2016-11-21 14:26:37 +01:00
nms-ifcfg-rh-plugin.c settings: clear unsaved flag on new settings-connection 2017-12-20 15:38:57 +01:00
nms-ifcfg-rh-plugin.h ifcfg-rh: rename files 2016-10-11 11:37:46 +02:00
nms-ifcfg-rh-reader.c libnm: rename MDns flag UNKNOWN to DEFAULT 2018-01-09 14:24:53 +01:00
nms-ifcfg-rh-reader.h ifcfg-rh/tests: rename test function connection_from_file_test() 2017-10-25 14:04:36 +02:00
nms-ifcfg-rh-utils.c ifcfg-rh: drop unused functions 2017-12-11 10:30:25 +01:00
nms-ifcfg-rh-utils.h ifcfg-rh: drop unused functions 2017-12-11 10:30:25 +01:00
nms-ifcfg-rh-writer.c libnm: rename MDns flag UNKNOWN to DEFAULT 2018-01-09 14:24:53 +01:00
nms-ifcfg-rh-writer.h ifcfg-rh: merge new_connection() and update_connection() functions 2017-10-25 14:04:36 +02:00
shvar.c ifcfg-rh: add tc support 2017-12-11 11:20:13 +01:00
shvar.h ifcfg-rh: add tc support 2017-12-11 11:20:13 +01:00