summaryrefslogtreecommitdiff
path: root/src/settings/plugins/keyfile/nms-keyfile-reader.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-05-26 09:55:40 +0200
committerThomas Haller <thaller@redhat.com>2020-06-05 09:17:21 +0200
commite2f83d4e929efd04bc30efef63031fdd94227088 (patch)
tree55285dcb8421522ac891af2ef200edd9003cd54b /src/settings/plugins/keyfile/nms-keyfile-reader.c
parent00b3a3505a6cdad7c3bb88cd3c1d447fb6963f95 (diff)
downloadNetworkManager-e2f83d4e929efd04bc30efef63031fdd94227088.tar.gz
keyfile: add NMKeyfileHandlerFlags
nm_keyfile_read() and nm_keyfile_write() will be public API. As such, it must be flexible and extendible for future needs. There is already the handler callback that fully solves this (e.g. a future handler event could request whether a certain behavior is enabled or not). As additional possibility for future extension, add a flags argument. Currently no flags are implemented.
Diffstat (limited to 'src/settings/plugins/keyfile/nms-keyfile-reader.c')
-rw-r--r--src/settings/plugins/keyfile/nms-keyfile-reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/plugins/keyfile/nms-keyfile-reader.c b/src/settings/plugins/keyfile/nms-keyfile-reader.c
index 2459be483f..ceda7f3f17 100644
--- a/src/settings/plugins/keyfile/nms-keyfile-reader.c
+++ b/src/settings/plugins/keyfile/nms-keyfile-reader.c
@@ -128,7 +128,7 @@ nms_keyfile_reader_from_keyfile (GKeyFile *key_file,
filename = &s[1];
}
- connection = nm_keyfile_read (key_file, base_dir, _handler_read, &read_info, error);
+ connection = nm_keyfile_read (key_file, base_dir, NM_KEYFILE_HANDLER_FLAGS_NONE, _handler_read, &read_info, error);
if (!connection)
return NULL;