NetworkManager/src/settings/plugins/ifupdown
Thomas Haller 5a82cad5f3 settings: extend commit_changes() to update the settings after writing
During write, it can regularly happen that the connection gets modified.
For example, keyfile never writes blobs as-is, it always writes the
blob to an external file, and replaces the certificate property with
a path.
Other reasons could be just bugs, where the reader and writer are not doing
a proper round trip (these cases should be fixed).

Refactor commit_changes(), to return the re-read connection to
the settings-connection class, and handle replacing the settings
there.

Also, prepare for another change. Sometimes we first call replace_settings()
followed by commit_changes(). It would be better to instead call commit_changes()
first, and only on success proceed with replace_settings(). Hence, commit_changes()
gets a new argument new_connection, that can be used to write another
connection to disk.
2017-10-25 14:04:36 +02:00
..
tests build: don't add subdirectories to include search path but require qualified include 2016-11-21 14:26:37 +01:00
nms-ifupdown-connection.c build: don't add subdirectories to include search path but require qualified include 2016-11-21 14:26:37 +01:00
nms-ifupdown-connection.h build: don't add subdirectories to include search path but require qualified include 2016-11-21 14:26:37 +01:00
nms-ifupdown-interface-parser.c ifupdown: remove redundant error check 2017-01-16 22:14:47 +01:00
nms-ifupdown-interface-parser.h ifupdown: rename files to "nms-ifupdown-*" 2016-10-11 11:37:46 +02:00
nms-ifupdown-parser.c ifupdown/trivial: whitespace fixup 2016-11-24 18:31:02 +01:00
nms-ifupdown-parser.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nms-ifupdown-plugin.c settings: extend commit_changes() to update the settings after writing 2017-10-25 14:04:36 +02:00
nms-ifupdown-plugin.h ifupdown: rename files to "nms-ifupdown-*" 2016-10-11 11:37:46 +02:00