From 0d8fcc39abdf9efce71a91ff5091a6d729fd8b9e Mon Sep 17 00:00:00 2001 From: Francesco Giudici Date: Mon, 13 Nov 2017 17:57:46 +0100 Subject: [PATCH] libnm-core: add keyfile writer for team link watcher Allow tests to dump the content of the property when getting a failure. --- libnm-core/nm-keyfile-writer.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libnm-core/nm-keyfile-writer.c b/libnm-core/nm-keyfile-writer.c index 30d519c40a..0efabf27a8 100644 --- a/libnm-core/nm-keyfile-writer.c +++ b/libnm-core/nm-keyfile-writer.c @@ -501,6 +501,15 @@ cert_writer (KeyfileWriterInfo *info, cert_writer_default (info->connection, info->keyfile, &type_data); } +static void +team_link_watcher_writer (KeyfileWriterInfo *info, + NMSetting *setting, + const char *key, + const GValue *value) +{ + /* skip */ +} + /*****************************************************************************/ typedef struct { @@ -576,6 +585,9 @@ static KeyWriter key_writers[] = { { NM_SETTING_802_1X_SETTING_NAME, NM_SETTING_802_1X_PHASE2_PRIVATE_KEY, cert_writer }, + { NM_SETTING_TEAM_SETTING_NAME, + NM_SETTING_TEAM_LINK_WATCHERS, + team_link_watcher_writer}, { NULL, NULL, NULL } };