libnm-core: add keyfile writer for team link watcher

Allow tests to dump the content of the property when getting a failure.

(cherry picked from commit 0d8fcc39ab)
This commit is contained in:
Francesco Giudici 2017-11-13 17:57:46 +01:00
parent 62876cee9a
commit 10745107f2

View file

@ -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 }
};