From ade90756ba364169e798109461c3755dbf7addb2 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 5 Sep 2017 09:24:29 +0200 Subject: [PATCH] libnm-core: add ifcfg-rh documentation for user setting --- libnm-core/nm-setting-user.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libnm-core/nm-setting-user.c b/libnm-core/nm-setting-user.c index 6c1d152aa9..049607e146 100644 --- a/libnm-core/nm-setting-user.c +++ b/libnm-core/nm-setting-user.c @@ -597,6 +597,18 @@ nm_setting_user_class_init (NMSettingUserClass *klass) * * Since: 1.8 **/ + /* ---ifcfg-rh--- + * property: data + * variable: NM_USER_* + * description: each key/value pair is stored as a separate variable with + * name composed by concatenating NM_USER_ with the encoded key. The key is + * encoded by substituting lowercase letters with uppercase and prepending + * uppercase letters with an underscore. A dot is encoded as a double + * underscore. Remaining characters are encoded as underscore followed by a + * 3 digit octal representation of the character. + * example: NM_USER_FOO__BAR=something + * ---end--- + */ obj_properties[PROP_DATA] = g_param_spec_boxed (NM_SETTING_USER_DATA, "", "", G_TYPE_HASH_TABLE,